我如何把window.opener.document.all设成我自己的对象名称? window.opener.document.all.haha.value = document.all.haha.value; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我是说window.opener.document.all.haha.value太长写起来嘛烦我想这样写hehe.haha.value让hehe如何代表window.opener.document.all? 可以,这么做var hehe = window.opener.document.all;alert(hehe.haha.value); 所有对象都可以赋值给一个自己定义的变量<span id=show>3</span><script>var n1 = show.innerHTML;alert(n1)var b=show.innerText;alert(b);var hehe = document.all("show");alert(hehe.innerText);</script> var hehe = window.opener.document.all;alert(hehe.haha.value); JQUERY实现的效果,怎么办? 有Javascript 2代的消息么? JS正则表达式提取文章前两段该怎么写?? 关于图片预览的问题 jsp中关于表单提交的问题 这种两个name相同的如何向表单提交? 关于广告动态轮播问题,请多指教! 如何用js控制链接的target属性? document.body.clientHeight是不是指浏览器中的用户可视区域的高度??? 高手请进,急急急!(我写了一个web版的oicq,但遇到了一些问题...) 谁能找到这个页面的原代码? 如何实现下列技巧
window.opener.document.all.haha.value太长写起来嘛烦
我想这样写
hehe.haha.value
让hehe如何代表window.opener.document.all?
var hehe = window.opener.document.all;
alert(hehe.haha.value);
<span id=show>3</span>
<script>
var n1 = show.innerHTML;
alert(n1)
var b=show.innerText;
alert(b);
var hehe = document.all("show");
alert(hehe.innerText);
</script>
var hehe = window.opener.document.all;
alert(hehe.haha.value);