随笔分类 - JavaScript
摘要:``` if(("standalone" in window.navigator) && window.navigator.standalone) { var noddy, remotes = false; document.addEventListener('click', function(event) { noddy = event.target; wh...
阅读全文
摘要:很多移动开发的资源 http://www.cnblogs.com/PeunZhang/p/3407453.html
阅读全文
摘要:```
var script = document.createElement("script"); script.src = '/static/js/view/'+url+'.js';
var done = false;
script.onload = script.onreadystatechange = function() { if (!done && (!this.re...
阅读全文
摘要:毋庸置疑,jQuery很强大,很方便,但是......越来越臃肿,怎么办?,jquery只基于模块化开发的,可以通过工具定制jquery,选择你需要的模块即可。 下面这个网站可以帮你完成定制 http://projects.jga.me/jquery builder/
阅读全文
摘要:一个非常好的前端UI,值得研究下 http://semantic ui.com/
阅读全文
摘要:html js PHP
阅读全文
摘要:``` loading 数据加载中 ```
阅读全文
摘要:移动web开发资源大整合 http://www.cnblogs.com/PeunZhang/p/3407453.html
阅读全文
摘要:jquyer版本:1.8.3 设备ios9.2 解决办法:
给需要绑定live方法的元素设置CSS
`slector{ cursor: pointer; }`
阅读全文
摘要:http://www.swiper.com.cn/
阅读全文
摘要:http://quilljs.com/http://simditor.tower.im/http://www.wangeditor.com/http://imperavi.com/redactor/
阅读全文
摘要:$(document).scroll(function() { var pageHeight = $(document).height()-$(window).height(); var bodyScrollTop = $('body').scro...
阅读全文
摘要:/* 微信上传 -----------------------------------------------------------------------*/ wx.config({ debug: true, appId: '', timestamp: , nonceStr:...
阅读全文
摘要:GIT 地址:https://github.com/VincentGarreau/particles.js/效果:
阅读全文
摘要:在制作富文本编辑器,尤其是在制作以div元素为编辑器区域时,当鼠标离开编辑区域以后会失去焦点,失去选区,这时候就要通过selection&range来重新设置选区。【以下代码尚未考虑IE低版本,请在现代浏览器下测试学习】 range 通过一个富文本编辑器,学习JavaScript! but...
阅读全文
摘要:最近在做一个富文本编辑器,当鼠标单击事件发生在编辑区域外以后,光标就会消失,那么execCommand()方法就不能在编辑器处执行。此时需要记录下光标消失的位置,一下几篇博文帮助非常大,记录下,以便后续学习使用。1. TheViper,说的很详细http://www.cnblogs.com/TheV...
阅读全文

浙公网安备 33010602011771号