03 2013 档案
摘要:js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。 例如:2、 进行url跳转时可以整体使用encodeURI例如:Location.href=encodeURI("http://cang.baidu.com/do/s?word=百度&ct=21");3、 js使用数据时可以使用es...
阅读全文
摘要:declare @Name intdeclare @NameS int select @Name= Namefrom INSERTED//获取更新后的Name select @NameS= Namefrom Deleted//获取更新前的Nameif(update(字段名))//这样写 当更新这个字段的时候才会执行下面的 新增同样有效begin//触发执行end
阅读全文
摘要://非空验证function IsNotEmpty(str) { if (str.replace(/(^[\s]*)|([\s]*$)/g, "") == "" || str.replace(/(^[\s]*)|([\s]*$)/g, "") == "不能为空.") return false; else return true;}//整型验证function IsInt(str) { if (str == "") return true; if (/^(\-?)(\d+)$/.test(str)
阅读全文

浙公网安备 33010602011771号