摘要: FROM : http://hi.baidu.com/yashua839/blog/item/e2e8913fe31b59d07c1e7166.html一、 windows XP1. MIME设置:在IIS的站点属性的HTTP头设置里,选MIME 映射中点击”文件类型”-”新类型”,添加一个文件类型:关联扩展名:*.json内容类型(MIME):application/x-javascript 2. Script Map Handler设置:还是在IIS的站点属性里,”主目录”-”应用程序设置”-”配置”-”映射”-”添加”,会打开”添加/编辑应用程序扩展名映射”的设置页面扩展名:.json运 阅读全文
posted @ 2011-03-26 13:16 Athrun 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: $.extend({ URLEncode:function(c){ var o=''; var x=0;c=c.toString(); var r=/(^[a-zA-Z0-9_.]*)/; while(x<c.length) { var m=r.exec(c.substr(x)); if(m!=null && m.length>1 && m[1]!='') { o+=m[1];x+=m[1].length; } else { if(c[x]==' ') { o+='+'; } else 阅读全文
posted @ 2011-03-26 08:26 Athrun 阅读(175) 评论(0) 推荐(0) 编辑