博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Client

摘要:第一次发现JavaScript中replace()方法如果直接用str.replace("-","!")只会替换第一个匹配的字符.而str.replace(/\-/g,"!")则可以全部替换掉匹配的字符(g为全局标志)。replace()Thereplace()methodreturnsthestringthatresultswhenyoureplacetextmatchingitsfirstargument(aregularexpression)withthetextofthesecondargument(astring).Iftheg(global)flagisnotsetinthereg 阅读全文

posted @ 2010-12-24 17:14 Aason 阅读(10023) 评论(2) 推荐(0)

摘要:在WEBCONFIG中加上如下节点。system.web.extensions scripting webServices jsonSerialization maxJsonLength="1024000" / /webServices /scripting /system.web.extensions 阅读全文

posted @ 2010-12-17 15:21 Aason 阅读(4477) 评论(0) 推荐(0)

摘要:在弹出的模态窗口中如果有POSTBACK,则会打开新窗口,而且调试的时候,弹出的模态窗口默认是有缓存,很不方便。解决方案:在head中加上以下代码, base target="_self" meta http-equiv='pragma' content='no-cache' meta http-equiv='Cache-Control' content='no-cache, must-revalidate' meta http-equiv='expires' content='0' 阅读全文

posted @ 2010-12-17 15:18 Aason 阅读(419) 评论(2) 推荐(0)