
js
文章平均质量分 87
terry1989
这个作者很懒,什么都没留下…
展开
-
js set Cursor style.
http://www.javascripter.net/faq/stylesc.htmInsert title here function setCursorByID(id, cursorStyle) { var elem; if (document.getElementById && (elem = document.getElementById(id))) {转载 2013-04-12 08:56:24 · 1175 阅读 · 0 评论 -
phantomjs note
useful likns:phantomjscnblogsExample1:test.js:console.log('Hello, world!');phantom.exit();command:phantomjs test.jsExample2:test.jsvar page = require('webpage').create();pa原创 2014-01-09 17:07:39 · 659 阅读 · 0 评论 -
import jQuery to Browser.
var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);原创 2014-01-09 17:10:08 · 541 阅读 · 0 评论 -
RequireJS Optimizer 的使用和配置
RequireJS Optimizer 的配置参数还有很多,完整的参数介绍可以看这里:https://github.com/jrburke/r.js/blob/master/build/example.build.jshttp://www.cnblogs.com/didi/p/4146656.html基本参数介绍:appDir:应用程序的最顶层目录。可选的,如果原创 2015-08-18 15:38:24 · 707 阅读 · 0 评论 -
js 加密
1、base64加密base64.js/**** Base64 encode / decode** @author haitao.tu* @date 2010-04-26* @email tuhaitao@foxmail.com**/ function Base64() { // private property _keyStr = "ABCDEF转载 2015-11-26 09:30:25 · 735 阅读 · 0 评论