javaScript <h1><script>alert(i)</script></h1> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 javascript没又 int i=0这种写法;改成var i=0;<Script>var i=0;</Script><body><h1 id=sh><script>sh.innerHTML=i;</script></h1></body> <h1 id=sh><script>document.write(i);</script></h1> <Script>var i=0;</Script><body><h1 id=sh><script>sh.innerHTML=i;</script></h1></body> 如果以上的都不可以,那么就是顺序问题,如下的绝对可以,测试过了!<body><h1 id="test">这里引用上面的i,因该如何写!</h1><Script>{var i=0;document.all.test.innerHTML=i;//这个地方要寻找test的}</Script></body> 有没有直接<=i>这种方法呢? 怎么可能不行啊。。无语。。<Script>int i=0;</Script><body><h1 id=sh><script>document.write(i);</script></h1></body> 是<Script>var i=0;</Script><body><h1 id=sh><script>document.write(i);</script></h1></body> 我的意思是<table bg=<script>document.write("red")</script>></table>这样不行,有什么办法没? <script> document.getElementById('aa').bgColor='red' ;</script><table id="aa"></table> 楼主要好好补一下下javascript和html的基本功啊。 不行啊,必须是<table bg=<script>document.write("red")</script>></table> <script>var color ="red" ;document.write("<table bg="+color+"></table>")</script>最后一次回这个帖!!无语中 <Script>var i=0;</Script><body><h1 id=sh><script>sh.innerHTML=i;</script></h1></body> 这个怎么可能会不行呢?你用的是不是int 呀,在javascript 中用的可是var js会话处理 DIV层移动并随滚动条滚动和居中定位(兼容IE和FF)-----和大家共享 初学javascript疑问1 请教关于javascript中地址栏参数传递的问题!急呀! 关闭窗口的疑问 请教树型菜单的高手! 数组排序后的取值问题 IE窗体中可以随意画线吗 用showModalDialog()显示的网页,如何让它的关闭按钮不显示或者灰掉? 怎样用脚本清除<table></table>中的所有标签和文本? 如何实现在一个文本框输入IP,子网掩码的文本框掩码自动出来,就像windows网络配置那样 哪位高手解释一下这两行代码是什么意思?
<Script>
var i=0;
</Script>
<body>
<h1 id=sh><script>sh.innerHTML=i;</script></h1>
</body>
var i=0;
</Script>
<body>
<h1 id=sh><script>sh.innerHTML=i;</script></h1>
</body>
<body>
<h1 id="test">这里引用上面的i,因该如何写!</h1>
<Script>
{
var i=0;
document.all.test.innerHTML=i;//这个地方要寻找test的
}
</Script>
</body>
<Script>
int i=0;
</Script>
<body>
<h1 id=sh><script>document.write(i);</script></h1>
</body>
<Script>
var i=0;
</Script>
<body>
<h1 id=sh><script>document.write(i);</script></h1>
</body>
</table>这样不行,有什么办法没?
<script>
document.getElementById('aa').bgColor='red' ;
</script>
<table id="aa">
</table>
<table bg=<script>document.write("red")</script>>
</table>
var color ="red" ;
document.write("<table bg="+color+"></table>")
</script>最后一次回这个帖!!无语中
var i=0;
</Script>
<body>
<h1 id=sh><script>sh.innerHTML=i;</script></h1>
</body> 这个怎么可能会不行呢?
你用的是不是int 呀,在javascript 中用的可是var