摘要:
转自:点击打开链接 现在的js框架将ajax请求封装得非常简单,例如下面: [javascript] view plain copy $.ajax({ type: "POST", url: "some.php", data: { name: "John", location: "Boston" } 阅读全文
摘要:
利用原生JSON对象,将对象转为字符串 [javascript] view plain copy var jsObj = {}; jsObj.testArray = [1,2,3,4,6]; jsObj.name = 'CSS3'; jsObj.date = '8 May, 2011'; var s 阅读全文