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... 阅读全文
posted @ 2013-03-26 11:31 放哨De老鼠 阅读(214) 评论(0) 推荐(0)
摘要:declare @Name intdeclare @NameS int select @Name= Namefrom INSERTED//获取更新后的Name select @NameS= Namefrom Deleted//获取更新前的Nameif(update(字段名))//这样写 当更新这个字段的时候才会执行下面的 新增同样有效begin//触发执行end 阅读全文
posted @ 2013-03-26 11:21 放哨De老鼠 阅读(382) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2013-03-06 10:39 放哨De老鼠
摘要://非空验证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) 阅读全文
posted @ 2013-03-01 10:40 放哨De老鼠 阅读(154) 评论(0) 推荐(0)