随笔分类 -  JAVASCRIPT

摘要:JavaScript学习总结(一)——延迟对象、跨域、模板引擎、弹出层、AJAX示例 阅读全文
posted @ 2016-12-19 08:41 mumakiss
摘要:Location对象window.location document.location解析URLdocument.URL //为该文档的URL静态字符串地址location.href //为该文档的URL静态字符串地址location.toString() //返回href属性的值。其他属性prot 阅读全文
posted @ 2016-12-17 23:54 mumakiss
摘要:<!--[if IE 6]> <script src="excanvas.js" type="text/javascript" charset="utf-8"></script> //引入IE 图像类库 <![endif]--> <!--[if IE 6]> 内容 <![endif]--> <!-- 阅读全文
posted @ 2016-12-14 17:46 mumakiss 阅读(111) 评论(0) 推荐(0)
摘要:常用: JS 获取浏览器窗口大小 1 // 获取窗口宽度 2 if (windows.innerWidth) 3 winWidth = windows.innerWidth; 4 else if ((document.body) && (document.body.clientWidth)) 5 w 阅读全文
posted @ 2016-11-29 17:02 mumakiss