摘要: const HOST = { port:22 } Host.port = 33; console.log( Host ) //{ port: 33}; const HOST1 = { port:80 } Object.freeze(HOST1); HOST1.port = 90; console.l 阅读全文
posted @ 2020-04-02 17:28 砂糖一椰子 阅读(188) 评论(0) 推荐(0) 编辑
摘要: jquery中的 resize( ) 方法可以动态监控浏览器窗口的大小 $(function(){ $(window).resize(function(){ var cliWidth = document.body.clientWidth; //浏览器宽 var cliHeight = docume 阅读全文
posted @ 2020-04-02 09:51 砂糖一椰子 阅读(2368) 评论(0) 推荐(0) 编辑