
javascript
草帽
The quieter you become,
the more you are able to hear.
展开
-
前端MVC—基于路径的数据层(PathStore)
(function(){/** * 拷贝数组,不拷贝undefined元素 */function cloneArray(source) { var prop = null, i = 0, len = source.length, target = []; for(; i < len; i++) { prop = source[i]; if(typeof prop =原创 2012-07-11 14:47:18 · 508 阅读 · 0 评论 -
IE6—在链接click事件的响应函数中发送jsonp请求不生效
$("#link").click(function(){ $.ajax({ type: 'GET', dataType: 'jsonp', url: 'http://test.local.com/getdetail', data:{id:1}, success: function(response){原创 2012-07-13 15:04:46 · 1440 阅读 · 2 评论