随笔分类 - JS
摘要:1.function 和object 都有 constructor 和prototype 2. var a=new Animal() (animal 是function或Object) a 有 constructor 没有 prototype, a的constructor 是animal.proto
阅读全文
摘要:alert 效果:{"a":"aaaa","nick":"ccccc","keyword":"ccccc"}后台可以使用NewTonJson.net 接收json字符串
阅读全文
摘要:json字符串转json对象:jQuery.parseJSON(jsonStr);json对象转json字符串:JSON.stringify(jsonObj);IE中可能对unicode使用“\uXXXX”格式来编码,可以使用如下来解码:function unicode2Char(str) {ret...
阅读全文