javascript
penghuilater
这个作者很懒,什么都没留下…
展开
-
unicode转码
将unicode的字符串转程unicode function unicode2utf16(codePoint) { if (typeof codePoint === ‘string’) { codePoint = parseInt(codePoint, 16); } if (codePoint < 0xdbff) { return String.fromCharCode(codePoin原创 2016-08-12 16:17:04 · 604 阅读 · 0 评论 -
获取焦点demo(一)
Js demo1 body {margin: 10px; padding: 10px; background-color: pink;} img {width: 400px;height: 400px; border: 2px solid rgba(255, 255, 255, 0.2);border-radius: 4px;vertical-align:top;} #box原创 2017-05-29 16:09:49 · 265 阅读 · 0 评论 -
Viewport 手机屏幕尺寸--webApp学习(一)
Viewport 移动web最佳的viewport设置:【布局viewport】=【设备宽度】= 【度量viewport】原创 2017-05-19 21:31:20 · 405 阅读 · 0 评论 -
js try catch
var txt="";function message(){ try { adddalert("JDJDJDJ"); } catch(err) { txt = "AAAAAAAA\n\n"; txt+="jjjjjjj\n"; alert(txt); }}原创 2017-06-02 13:00:59 · 503 阅读 · 0 评论