如果jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8配置文件报错,把&改成&就好了
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
2018-03-03
如果jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8配置文件报错,把&改成&就好了
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
jdbc:mysql://127.0.0.1:3306/mirco_message?useSSL=true&characterEncoding=utf8
2018-03-03
3.<script type="text/javascript">
function deleteOne(path,id){
if(confirm("确定要删除吗?")){
document.getElementById("id").value=id;
document.getElementById("mainForm").action = path+"/DeleteOneServlet.action";
document.getElementById("mainForm").submit();
}
}
</script>
function deleteOne(path,id){
if(confirm("确定要删除吗?")){
document.getElementById("id").value=id;
document.getElementById("mainForm").action = path+"/DeleteOneServlet.action";
document.getElementById("mainForm").submit();
}
}
</script>
2018-02-22
老师的课后习题,我把自己的答案分享一下,亲测可用:
1.在<form>里加上
<input type="hidden" id="id" name="id" />
2.a标签改成:
<a href="#" onclick="deleteOne('${pageContext.request.contextPath}',${message.id})">删除</a>
地方不够,分两次
1.在<form>里加上
<input type="hidden" id="id" name="id" />
2.a标签改成:
<a href="#" onclick="deleteOne('${pageContext.request.contextPath}',${message.id})">删除</a>
地方不够,分两次
2018-02-22
老师,你讲课真的有一套,讲课幽默,有图有证明,隔空互动,繁琐的内容简单化,去除听课者的心里恐惧和枯燥,荣幸听见你的视频。为你鼓掌!
2018-02-11
乱码问题:
1.页面如果全是乱码,在talk.jsp顶部加上<%@ page language="java" pageEncoding="utf-8" %>
2.只有"正在与公众号对话"和"发送"两处地方是中文,其余乱码,在talk.js引入的地方加上charset="UTF-8"
<script type="text/javascript" charset="UTF-8" src="..........."></script>
1.页面如果全是乱码,在talk.jsp顶部加上<%@ page language="java" pageEncoding="utf-8" %>
2.只有"正在与公众号对话"和"发送"两处地方是中文,其余乱码,在talk.js引入的地方加上charset="UTF-8"
<script type="text/javascript" charset="UTF-8" src="..........."></script>
2018-02-09
可以把mainForm一起提交,servlet不做修改
<a href="javascript:judgeDelete(${message.id})">删除</a>
function judgeDelete(id) {
if(confirm("确定要删除吗")){
document.getElementById("mainForm").action = "DeleteOneServlet.action?id=" + id;
document.getElementById("mainForm").submit();
}
<a href="javascript:judgeDelete(${message.id})">删除</a>
function judgeDelete(id) {
if(confirm("确定要删除吗")){
document.getElementById("mainForm").action = "DeleteOneServlet.action?id=" + id;
document.getElementById("mainForm").submit();
}
2018-02-08
看完了,老师讲的太好了,不仅讲了mybatis,很容易理解,而且还附带讲了其他扩展知识点,让大家学习了很多知识,以前有些不明白的东西却在这里弄明白了。太感谢老师了。谢谢!
2018-02-08