- 使用的API
- window.prompt()
- window.alert()
- JSON.prase()
- JSON.stringify()
- string.indexOf(‘a’)
- string.replace(‘a’,’b’)
- String.toUpperCase()S
- String.toLowerCase()
- String.fromCharCode()
- $dom.insertBefore()
- $dom.insertAfter()
- onclick()
- onkeypress()
- onerror()
- window.onbeforeunload()
- window.onload()
- $().fadeTo(time,opacity)
- localStorage.setItem(‘key’,value)
- localStorage.getItem(‘key’,value)
- 总结
使用的API
window.prompt()
-
window.alert()
-
JSON.prase()
-
JSON.stringify()
-
string.indexOf(‘a’)
-
string.replace(‘a’,’b’)
-
String.toUpperCase()S
-
String.toLowerCase()
-
String.fromCharCode()
-
$dom.insertBefore()
-
$dom.insertAfter()
-
onclick()
-
onkeypress()
-
onerror()
-
window.onbeforeunload()
-
window.onload()
-
$().fadeTo(time,opacity)
-
localStorage.setItem(‘key’,value)
-
localStorage.getItem(‘key’,value)
-
总结
键盘事件需要阻止冒泡,防止意外触发
- 页面淡入淡出需要嵌入式设置css : opacity:0,否则在资源加载速度慢时 html 页面会先出现
