好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

第一次写html,不知道哪错了,希望可以得到大家帮助_html/css_WEB-ITnose

 	 		 CSS Example 	 	 				 		 		 			function start(str1) {				str=str1;				len=str.length;				i=0;				dwrite();			}			function dwrite() {				document.getElementById("here").value=document.getElementById("here").value + str.charAt(i);				if( i++ ==len ) {					i=0;					return true;				}					setTimeout("dwrite()",500);			}		 	   

在IE8中自带的“开发人员工具”中提示:
对象不支持此操作 index.html 行6 字符1.
另外我想问一下,我用这样的高度方法有没有什么问题,有没有什么更好的高度方法?


回复讨论(解决方案)

"另外我想问一下,我用这样的高度方法有没有什么问题,有没有什么更好的高度方法?"打错字了,应该是 调试方法。

start换个方法名就Ok了

start换个方法名就Ok了
为什么会这样,它是关键字?谢谢你,另外你对javascript这样的写法有没有什么要说的?

引用 2 楼 的回复:
start换个方法名就Ok了

为什么会这样,它是关键字?谢谢你,另外你对javascript这样的写法有没有什么要说的?
document.getElementById("here").value=document.getElementById("here").value + str.charAt(i);
>>
document.getElementById("here").value+=str.charAt(i);

谢谢!

查看更多关于第一次写html,不知道哪错了,希望可以得到大家帮助_html/css_WEB-ITnose的详细内容...

  阅读:32次