随笔分类 - 00.Javascript
React,RN,NodeJS
摘要:http://jwarby.github.io/jquery-pagewalkthrough/ 源码 https://github.com/jwarby/jquery-pagewalkthrough
阅读全文
摘要:https://www.hcharts.cn/
阅读全文
摘要:http://www.json.org/json-zh.html 下载: https://github.com/douglascrockford/JSON-js
阅读全文
摘要:ref: http://api.jquery.com/on/ 直接事件: 将事件委托直接绑定到dom元素上,当事件发生时触发handler. 委托事件: 将事件委托绑定到dom元素的外层容器上,当事件发生时,冒泡到匹配的外层元素,触发相应handler. 采用委托事件的优势有2点: 1.效率高。对子
阅读全文
摘要:markdown是将某些格式的文本,翻译成HTML的一个库,非常精妙! https://www.npmjs.com/package/markedhttps://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tablesMarkdow
阅读全文
摘要:http://stackoverflow.com/questions/25494365/es6-module-export-options A year and some later, here is the best information I've found on the subject. T
阅读全文
摘要:npm 中的模块版本都需要遵循 semver 2.0 的语义化版本规则。 版本格式:主版本号.次版本号.修订号,版本号递增规则如下: 主版本号:当你做了不兼容的API 修改, 次版本号:当你做了向下兼容的功能性新增, 修订号:当你做了向下兼容的问题修正。 先行版本号及版本编译信息可以加到“主版本号.
阅读全文
摘要:http://borismoore.github.io/jsrender/demos/demos.html 模板引擎 http://bardo.iteye.com/blog/1539196 PS: https://github.com/BorisMoore/jsrender/tree/v0.9.86
阅读全文
摘要:http://www.dynarch.com/projects/calendarDoc:http://www.dynarch.com/jscal/This is the documentation of the new Dynarch Calendar (“JSCal2”). Note that it is not compatible with our old calendar project. The new calendar has less predefined ways to setup, and rather focuses on an extensive API that you
阅读全文
摘要:var foo = function(){ var cnt = 0; return function(){ return cnt++; };};var closure = foo();console.log(closure());console.log(closure());console.log(closure()); 一个可调用对象引用一外部的变量(但又不是全局变量)时,就形成了闭包。
阅读全文
摘要:http://www.lesscss.netless.js下载LESS 1.5已经放出Beta 1版本,支持source map等新特性,欢迎尝鲜。详细变更请见更新日志。生产环境使用建议下载1.4.2稳定版本。1.5.0 Beta 11.4.2如果您需要在IE6、7、8中使用,请先在引入less.js前先引入es5-shim。https://github.com/kriskowal/es5-shim浏览器端使用LESSCSS也可以不经编译,直接在浏览器端使用。使用方法:下载LESSCSS的.js文件,例如lesscss-1.4.0.min.js。在页面中引入.less文件需要注意rel属性的值
阅读全文
摘要:px和em都是长度单位,区别是,px的值是固定的,em的值是相对的,并且em会继承父级元素的字体大小。任意浏览器的默认字体高都是16px。所以未经调整的浏览器都符合: 1em=16px。那么12px=0.75em, 10px=0.625em。为了简化计算,在css中的body选择器中声明font-size=62.5%,这就使em值变为16px*62.5%=10px, 这样12px=1.2em, 10px=1em, 也就是说只需要将你的原来的px数值除以10,然后换上em作为单位就行了。引自:http://www.w3.org/Style/Examples/007/unitsBut in gen
阅读全文
摘要:http://www.websocket.org/echo.html.net websocket serverhttp://superwebsocket.codeplex.com/http://supersocket.codeplex.com/
阅读全文
摘要:http://files.cnblogs.com/wucg/excanvas_r3_cgdemo.zipfrom:http://excanvas.sourceforge.net/clear canvas for redrawcontext.clearRect ( x , y , w , h );orcanvas.width = canvas.width;
阅读全文
摘要:JS压缩,CSS压缩https://developers.google.com/closure/compiler/docs/overviewhttp://yui.github.com/yuicompressor/
阅读全文
摘要:http://trentrichardson.com/Impromptu/index.php下载:https://github.com/trentrichardson/jQuery-ImpromptuEXAMPLESTo simply call Impromptu like you would a regular alert command:$.prompt('Example 1');Example 1To add a a couple extra buttons with different values:$.prompt('Example 2',{ butt
阅读全文