随笔分类 -  js

摘要:一. 使用createjs里的LoadQueue函数实现异步加载图片,监听加载进度 1.实例对象LoadQueue加载队列对象 2.需要监听常用到的三个方法 3.实现监听进度 4.添加加载资源 5.获取加载完的资源 二:完整的代码 阅读全文
posted @ 2017-12-07 11:18 三百里江山 阅读(1452) 评论(0) 推荐(0)
摘要:set_map_child($('.map_input_id')); set_map_max($(".map_input_id")); function set_map_child(obj){ var _this = obj; var wd = _this.attr("data-map-wd"); var jd = _this.attr(... 阅读全文
posted @ 2016-11-22 18:19 三百里江山 阅读(441) 评论(0) 推荐(0)
摘要:// Start 窗口的拖动 var _move=false; //移动标记 var _x,_y; //鼠标离控件左上角的相对位置 $(document).ready(function(){ $(".box h4... 阅读全文
posted @ 2016-11-22 18:16 三百里江山 阅读(3345) 评论(0) 推荐(0)
摘要:html代码: 1 $("#testJsonp").click(function(){ 2 $.ajax({ 3 url: "http://www.test.cc/1.php", 4 type:'get', 5 async:false, 6 jsonpCallback: "receive", 7 j 阅读全文
posted @ 2016-02-18 17:47 三百里江山 阅读(647) 评论(0) 推荐(0)