encodeURI(), decodeURI()它们都是Global对象的方法。css
; , / ? : @ & = + $
- _ . ! ~ * ' ( )
encodeURIComponent()
来编码部分字符。- _ . ! ~ * ' ( )
linux文件和目录的惟一标识符是什么?html
inodes节点
其余的见Githubnode
这个东西是最开始学习JavaScript了解了的,可是好久不看就有点儿记不清楚了。因此从新总结一下。linux
一共有三种系统对话框,以下:css3
// alert() // confirm('Are you a boy?') if(confirm('Are you a boy')) { console.log(true); } else { console.log(false); } // prompt(), 参数有两个,第二个可选。 // 第一个参数显示给用户的提示信息,第二个参数是文本输入域的默认值 var result = prompt('Please write your name:' + 'john'); var result2 = prompt('Please write your name:'); if(result2 !== null) { console.log(result2); }
'=='会转型。git
'==='不会转型。es6
0 == '0' // true 0 === '0' // false
Date.parse('1900-01-19'); // -2207433600000
建立一个日期对象, var now = new Date(), 新对象自动得到当前时间和对象。github
下列不是transition-timing-function的单位的是?canvas
(50|2 == 50) (50|16 == 50) (50|4 == 50) (50|32 == 50)
function a() { var arg = []; for(var i = 0;i < 10;i++) { arg[i] = function() { return i; }; } return arg; } a()[1](); // 10
var scope = 1; function p() { var scope; console.log(scope); scope = 3; } p(2); // 2