如何正确使用jquery Ajax
摘要:
在我们平时开发当中Jquery AJax 几乎随处可见,但大多数同学都是这样使用:$.get 或$.post ,但我一般不推荐这样使用。因为$.get和$.post 终究是对$.Ajax封装的简单易用的高层实现。我个人一般推荐这样使用:$.ajax({ type: "get",//这里还可以用于Post url: "/Login/Login", data: { userCode: _userCode, passCode: _passCode, code: _code, r: Math.random() * 10 }, //这里发送到服务器的数据 befo 阅读全文
posted @ 2013-01-31 17:47
~紫鱼~
阅读(521)
评论(0)
推荐(0)
浙公网安备 33010602011771号