android react native 修改js怎么执行
1个回答
2016-06-01
展开全部
<script type="text/javascript">
(function (win, doc) {
reCall(win,doc);
window.setTimeout("reCall",2000);//页面加载完成后延迟2秒执行
})(window, document);
function reCall(win,doc){
if(!win) win = window;
if(!doc) doc = document;
var s = doc.createElement("script"),
h = doc.getElementsByTagName("head")[0];
if (!win.alimamatk_show) {
s.charset = "gbk";
s.async = true;
s.src = "tkapi.js";
h.insertBefore(s, h.firstChild);
};
var o = {
pid: "123",
};
win.alimamatk_onload = win.alimamatk_onload || [];
win.alimamatk_onload.push(o);
}
</script>
(function (win, doc) {
reCall(win,doc);
window.setTimeout("reCall",2000);//页面加载完成后延迟2秒执行
})(window, document);
function reCall(win,doc){
if(!win) win = window;
if(!doc) doc = document;
var s = doc.createElement("script"),
h = doc.getElementsByTagName("head")[0];
if (!win.alimamatk_show) {
s.charset = "gbk";
s.async = true;
s.src = "tkapi.js";
h.insertBefore(s, h.firstChild);
};
var o = {
pid: "123",
};
win.alimamatk_onload = win.alimamatk_onload || [];
win.alimamatk_onload.push(o);
}
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询