Grunt是一个自动化的项目构建工具. 如果你需要重复的执行像压缩, 编译, 单元测试, 代码检查以及打包发布的任务. 那么你可以使用Grunt来处理这些任务, 你所需要做的只是配置好Grunt, 这样能很大程度的简化你的工作...
分类:
其他好文 时间:
2014-09-09 13:00:18
阅读次数:
182
需求:点击button获得input框中选中的内容,让选中的内容变红,...
分类:
其他好文 时间:
2014-09-09 12:53:18
阅读次数:
172
function DiffArray(a,b){
this.a = a;
this.b = b;
}
DiffArray.prototype.diff = function(){
var c = [];
var tmp = this.a.concat(this.b);
var o = {};
for (var i = 0; i
...
分类:
Web程序 时间:
2014-09-09 12:46:28
阅读次数:
170
|
|
Arial
Comic Sans MS
Courier New
Monotype
Tahoma
Times
1
2
3
4
5
-
-
-
-
-
|
接下来添加iframe:
编写js代码:
<!--
textEditor.document.designMode="on";
textEditor.document.open();
te...
分类:
其他好文 时间:
2014-09-09 12:40:18
阅读次数:
206
本系列作为Effective JavaScript的读书笔记。
JavaScript中并没有Block Scoping,只有Function
Scoping。
因此如果在一个Block中定义了一个变量,那么这个变量相当于是被定义到了这个Block属于的Function中,比如:
function isWinner(player, others) {
var highest...
分类:
编程语言 时间:
2014-09-09 12:37:58
阅读次数:
188
Trianglify 是一个能够生成五颜六色的三角形图案的 JavaScript 库,可以用来作为 SVG 图像和 CSS 背景。它的灵感来自于 btmills 的 geopattern,并使用d3.js 建立多边形的 SVG 图形和使用 SVG 过滤器进行渲染。它还包括 colorbrewer 调...
分类:
其他好文 时间:
2014-09-09 12:21:58
阅读次数:
196
很多node入门的书里面都会在介绍node特性的时候说:单线程,异步式I/O,事件驱动。Node不是一门语言,它是运行在服务器端的开发平台,官方指定语言为javascript。阻塞和线程:线程在执行中如果遇到磁盘读写或网络通信(统称为 I/O 操作),通常要耗费较长的时间,这时操作系统会剥夺这个线程...
分类:
Web程序 时间:
2014-09-09 12:21:28
阅读次数:
209
首先看一个例子:var name = 'laruence';function echo() {alert(name);var name = 'eve';alert(name);alert(age);}echo();运行结果是什么呢?上面的问题, 我相信会有很多人会认为是:laruenceeve[脚本...
分类:
编程语言 时间:
2014-09-09 12:08:18
阅读次数:
232
http://www.html-js.com/article/Promise-translation-JavaScript-Promise-devil-details原文链接:JavaScript Promises … In Wicked Detail我在 JavaScript 中使用 Promis...
分类:
编程语言 时间:
2014-09-09 12:06:18
阅读次数:
360