huangzhaoxiao

博客园 首页 新随笔 联系 订阅 管理

2017年8月2日 #

摘要: 简单的一个string.format的方法去替换字符串 String.format = function () { if (arguments.length == 0) return null; var str = arguments[0]; for (var i = 1; i < argument 阅读全文
posted @ 2017-08-02 11:50 servant-catholic 阅读(649) 评论(0) 推荐(0) 编辑

摘要: 通过Google找到的一个原生js解决jsonp请求的方案: var native_jsonp = (function () { var that = {}; that.send = function (src, options) { var options = options || {}, cal 阅读全文
posted @ 2017-08-02 10:52 servant-catholic 阅读(229) 评论(0) 推荐(0) 编辑