摘要: <script type="text/javascript"> /* 请求Ajax 带返回值,并弹出提示框提醒 --------------------------------------------------*/ function getAjax(url, parm, callBack) { $.ajax({ type: 'post', dataType: "text", url: url, data: parm, cache: false, async: false, success: function (msg) { 阅读全文
posted @ 2012-08-01 20:23 电脑客 阅读(236) 评论(0) 推荐(0)
摘要: var each = _.each = _.forEach = function(obj, iterator, context) { if (obj == null) return; if (nativeForEach && obj.forEach === nativeForEach) { obj.forEach(iterator, context); } else if (obj.length === +obj.length) { for (var i = 0, l = obj.length; i < l; i++) { if (iterator.call(contex 阅读全文
posted @ 2012-08-01 19:05 电脑客 阅读(257) 评论(0) 推荐(0)