摘要: 比如当变量name的类型是Stirng时, $name$ 打印出来的是 张三 #name# 打印出来的是 ‘张三’ $ 的作用实际上是字符串拼接 #用于变量替换 那什么时候用$,什么时候 用 # (1)对于变量部分, 应当使用#, 这样可以有效的防止sql注入,具体执行时,# 都是用到了prepar 阅读全文
posted @ 2017-05-11 15:13 天阴的时候 阅读(234) 评论(0) 推荐(1) 编辑
摘要: 打开apache安装目录的conf文件夹下的httpd.conf1、将以下两行前的注释字符 # 去掉:#LoadModule proxy_module modules/mod_proxy.so#LoadModule proxy_http_module modules/mod_proxy_http.s 阅读全文
posted @ 2017-05-11 15:05 天阴的时候 阅读(389) 评论(0) 推荐(1) 编辑
摘要: 客户端:<script type="text/javascript"> function getXml(){ var name = $("#input").val(); alert("into getXml()"); $.ajax({ type : "post", url : "/ajaxRetur 阅读全文
posted @ 2017-05-11 14:58 天阴的时候 阅读(162) 评论(0) 推荐(1) 编辑
摘要: 前端发送请求与接收数据: $.ajax({ type : "post", url : "/queryStudent", dataType : "JSON", async : false, contentType : "application/x-www-form-urlencoded; charse 阅读全文
posted @ 2017-05-11 14:53 天阴的时候 阅读(922) 评论(0) 推荐(1) 编辑