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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<ul class="q"> | |
<li></li> | |
<li></li> |
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 me=[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[ |
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 class="loading-msg"> | |
数据加载中请稍后 | |
<div class="loading-box"> | |
<div class="loading" index="0"></div> | |
<div class="loading" index="1"></div> | |
<div class="loading" index="2"></div> | |
<div class="loading" index="3"></div> | |
<div class="loading" index="4"></div> | |
</div> | |
</div> |
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
console.log(parseInt("10")) //10 | |
console.log(parseInt("010")) //10 | |
console.log(parseInt("19", 10)) //19 | |
console.log(parseInt("11", 2)) //3 | |
console.log(parseInt("17", 8)) //15 | |
console.log(parseInt("1f", 16)) //31 | |
console.log(parseInt("He was 40")) //Nan |
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 numToChar(str) { | |
var chartArr = str.split(""); | |
var chartLib = { | |
a: 1, | |
b: 2, | |
c: 3, | |
d: 4, | |
e: 5, | |
f: 6, | |
g: 7, |
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
<!DOCTYPE html> | |
<head> | |
<style type="text/css"> | |
*{ padding:0px; margin:0px;} | |
.box{ width:1000px; background:#ccc; margin:0 auto; overflow:hidden; margin-bottom:20px;} | |
.main{ width:770px; height:2000px; background:#000; float:left;} | |
.sub{ width:220px; background:#FC6; float:right;} | |
.sub01{ width:220px; height:100px; background:#0CC; margin-bottom:10px;} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>圣诞树</title> | |
<style type="text/css"> | |
#innter{text-align: center;} | |
</style> | |
</head> | |
<body> |
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 getNow = (function () { | |
//DEBUG 为false则返回真实时间,ture 则返回模拟时间。 | |
var DEBUG = true; | |
//通过修改年、月、日 时 分 秒 毫秒 来达到某个时间的模拟。 | |
var now = new Date(2014, 10, 24, 0, 0, 0, 0).getTime(); | |
var begin = new Date(); | |
return function () { | |
if (DEBUG) { | |
var t = new Date().getTime(); | |
now += t - begin; |
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 func() { | |
var i = 0; | |
return function () { | |
return i++; | |
} | |
} | |
var counter = func(); | |
console.log(counter()); // 0 | |
console.log(counter()); // 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
// 原生JavaScript获取复选框的值 | |
function get_checkbox_value(field){ | |
if(field&&field.length){ | |
for(var i=0;i<field.length;i++){ | |
if(field[i].checked && !field[i].disabled){ | |
return field[i].value; | |
} | |
} | |
}else { | |
return; |
OlderNewer