01 2014 档案

摘要:Until recently, when I write ajax call, always write like below:$.ajax({ type: "post", datatype: "json", url: "someurl", success: function (data) { //some logic }});and repeat everywhere... Until some day: ... 阅读全文
posted @ 2014-01-17 13:43 McKay 阅读(621) 评论(0) 推荐(0) 编辑
摘要:js中的嵌套函数用的很多,很牛叉,那为何要平面化?易懂(自己及他人)易修改(自己及他人)平时Ajax调用写法(基于jQuery)$.post('url', jsonObj, function (data) { if(data) { var tips = $.ligerDialog.tip({ title: 'Tip', content: 'Operation successful!' }); ... 阅读全文
posted @ 2014-01-14 11:31 McKay 阅读(6897) 评论(2) 推荐(2) 编辑

点击右上角即可分享
微信分享提示