上一页 1 ··· 9 10 11 12 13
摘要: 删除环境变量: unset -v PKG_CONFIG_PATH 添加环境变量: export PKG_CONFIG_PATH="你需要设置的路径", 例如: 参考博客:http://www.cnblogs.com/liulipeng/p/3945680.html 阅读全文
posted @ 2015-10-15 15:47 anthonyliu 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: 使用过iscroll插件的同学都知道iscroll支持自定义事件,即在调用iscroll时参数赋值options.click = true。 接下来定义事件如: 1 $clinicAppoint.on('click', function(event) { 2 if($(event.target).c 阅读全文
posted @ 2015-10-13 20:20 anthonyliu 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 1.隔离click事件 有一些应用,不需要我们自己的定义的click函数,例如: 1 $(document).on('click', '#inp', function(e){ 2 alert('hello world!'); 3 }); 希望点击id="inp"时,不予以响应,那怎么办!!看代码: 阅读全文
posted @ 2015-10-13 15:10 anthonyliu 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1.requestAnimationFrame requestAnimationFrame是实现如“最优帧速率”、“选择绘制下一帧的最佳时机”的功能,它的兼容性写法: var rAF = window.requestAnimationFrame || window.webkitRequestAnim 阅读全文
posted @ 2015-10-07 17:54 anthonyliu 阅读(559) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13