![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
王哆啦啦
我的头脑总是枯竭,但是我装作没那回事···
展开
-
iframe通信PostMessage
不同项目之间的通信问题,跨域通信,iframe,postMessage原创 2023-02-23 11:08:01 · 337 阅读 · 0 评论 -
获取url中的参数方法
//方式一:js获取url参数值方法functiongetUrlQuery(urlPath){leturl=urlPathif(urlPath.indexOf('?')!==-1){letarr=url.replace('?',',').split(',')queryArr=arr[1].replace(/\&/g,',').split(',')varqueryObj={}for(letindex...原创 2021-04-16 10:47:02 · 828 阅读 · 0 评论 -
Object.defineProperty理解
html<div id="app"> <span>firstName:</span> <input type="text" id="firstName" value="" /><br /> <span>lastName:</span> <input type="text" id="lastName" value="" /><br /> <!-- <原创 2021-02-24 15:54:07 · 75 阅读 · 0 评论