function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null){ var b = decodeURI(r[2]). replace(/\+/g," "). replace(/%2B/g,&q
在处理sql时,遇到insert 或update 的参数中含有特殊字符“&”,下划线“_”, 单引号" ' "等时,要做转义处理. 例:插入特殊字元'&' update userinfo set pageurl='myjsp?page=1&pagesize=10' where id='test' 两个办法: 1) update userinfo set pageurl='myjsp?page=1'||'&'||'pagesize=10' where id