当前位置:
代码迷
>>
综合
>> simulatelocation虚拟定位
详细解决方案
simulatelocation虚拟定位
热度:
82
发布时间:
2023-09-08 04:32:43.0
simulatelocation虚拟定位
<div id="bxArticle_97" style="padding:9;line-height:18px;height:90"> <TABLE style="MARGIN-TOP: 12px; BACKGROUND: white; MARGIN-BOTTOM: 12px; WIDTH: 90%" cellSpacing=0 borderColorDark=white cellPadding=0 align=center borderColorLight=#bababa border=1> <TBODY> <TR height=22> <TD style="PADDING-LEFT: 6px; BACKGROUND: #d4d0c8">◇ 请先修改下面的代码 - >> <U style="CURSOR: pointer">运行下面的js</U></TD></TR> <TR vAlign=top height=90> <TD style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; WORD-BREAK: break-all; PADDING-TOP: 6px" name="#jscode"><div contenteditable=true style=width:100%;height:100%;><script> alert("修改我~~") </script></TD></TR></TBODY></TABLE> </div> <script> dxy_init() function dxy_init(){ window.$=function(obj){return typeof(obj)=="string"?document.getElementById(obj):obj} } var threadID="97",myName="" $("bxArticle_97").onclick=function(e){ var e=event||e,ee=e.srcElement if(ee.tagName=="U"&&ee.innerText=="运行下面的js") jsCode_run(ee) } function jsCode_run(ee){ var data,w data=ee.parentNode.parentNode.nextSibling.innerText w=window.open("", "_blank","") w.document.write(data) w.document.close() if(/<script(.)+src=/.test(data)) w.location.reload(true) } </script>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
从script8看到的运行效果,不错, simulatelocation虚拟定位
相关解决方案