This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mutation(arr) { | |
var first = arr[0].toUpperCase(); | |
var second = arr1.toUpperCase(); | |
var flag = 1; | |
for(var i=0;i<second.length;i++){ | |
if(first.indexOf(second[i])==-1){ | |
flag = 0; | |
} | |
} | |
return (flag==1)?true:false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
media screen and (min-width:320px){html{font-size:12px;}} | |
media screen and (min-width:375px){html{font-size:14px;}} | |
.class{font-size:1rem;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(g,undefined){ | |
//内部私有方法 | |
function findControl(labelText, form){ | |
var labels = document.getElementsByTagName("Label"); | |
for(var i=0,l=labels.length; i<l; i++){ | |
var label = labels[i]; | |
var text = label.innerText; | |
if(text.trim() == labelText){ | |
var labelFor = label.getAttribute("for"); | |
if(labelFor){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsonData = [ | |
{ | |
leftAreaImg:{ | |
src:"###",//左侧大图地址 | |
href:"###"//左侧大图链接 | |
}, | |
rightAreaObj:[ | |
{ | |
ongoing_right_leftImgSrc:"###",//右侧每个小块图片地址 | |
price:160,//右侧每个小块价格 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="mall_sidebar" class="eric_mall_sidebar"> | |
<!--官方声明--> | |
<div class="sidebar_box eric_sidebar_box"> | |
<div class="title eric_title">官方声明</div> | |
<div class="sidebar_fs"> | |
<div class="eric_sidebar_img"> | |
<a href="###" class="" target="_blank" title="###"> | |
<img src="http://p0.jmstatic.com/jmstore/image/000/000/4_std/53ec77660df7e.jpg"/> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
第一节 | |
Stability Index 稳定级别索引 | |
译者注:Node.js的API在不断的发展当中,会不断的引入一些新的实验性的API(刚引入的应该叫 Experimental),有些经过社区或开发者们的证明是对开发有帮助的,这个试验性的的会慢慢的成为Stable,意味着以后就算出了新的Node.js版本,也不会有大的变化被替换或者移除什么的,如果是经过大量的开发证明,离开了某个API就体现不了Node.js的优势的,就会从Stable变成Frozen,locked | |
索引从不稳定到稳定依次是:Deprecated->Expermental->Unstable->Stable->API Frozen->Locked | |
Stability: 0 - 抛弃 | |
这个API被引入了,但被证明是有问题的,在以后的版本里会被慢慢的移除掉,所以在你的应用程序当中最好不要依赖它来开发,使用这些API可能会导致一些warnings的警告,有可能你依赖这些API开发的应用程序,升级到新的版本的Nodejs时会导致不兼容 | |
Stability: 1 - 试验性的API | |
这只是试验性质的,如果你要使用Nodejs开发稳定的应用,最好不要尝鲜,当然你可以试着玩一玩,然后向 | |
Nodejs官方反馈一下你的使用心得,这些试验性的API有可能会被移除或者永久的成为稳定的API。 | |
Stability: 2 - 不稳定的API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aAF | |
ALLiANCE | |
ANiVCD | |
ARTHOUSE | |
ASTEROiDS | |
aXXo | |
BLiND | |
BeStDivX | |
BETAMAX | |
BugZ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Question #1: ["1", "2", "3"].map(parseInt) | |
// Verify as below | |
var a = ['1','2','3']; | |
// This would show the input that `map` feeds to the callback | |
a.map(function(){console.log(arguments);}); | |
// output of one of the lines: { '0': '1', '1': 0, '2': [ '1', '2', '3' ] } | |
console.log( parseInt('1',0)); // output: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- [ ] Figure out wormholes | |
- [ ] Call @arfon | |
- [ ] Research ([docs](http://en.wikipedia.org/wiki/Wormhole#Time_travel)) | |
- [ ] Build prototype #15 | |
- [ ] Test run #43 @world-domination/time-travel | |
- [ ] ...? | |
- [ ] Profit! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* impress.js | |
* | |
* impress.js is a presentation tool based on the power of CSS3 transforms and transitions | |
* in modern browsers and inspired by the idea behind prezi.com. | |
* | |
* | |
* Copyright 2011-2012 Bartek Szopka (@bartaz) | |
* | |
* Released under the MIT and GPL Licenses. |