主题:  诸位大侠,请问innerHtml的用法

zzyhero2000

职务:普通成员
等级:1
金币:1.0
发贴:144
注册:2002/6/14 13:01:49
#12002/8/19 15:16:16
诸位大侠,请问innerHtml的用法



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:622
注册:2001/10/21 13:06:17
#22002/8/20 10:09:03
innerHTML Property Internet Development Index

--------------------------------------------------------------------------------

Sets or retrieves the HTML between the start and end tags of the object.

Syntax

HTML N/A
Scripting object.innerHTML [ = sHTML ]

Possible values

sHTML String that specifies or receives the content between the start and end tags.


msdn.microsoft.com/workshop/author/dhtml/reference/properties/innerhtml.asp



zzyhero2000

职务:普通成员
等级:1
金币:1.0
发贴:144
注册:2002/6/14 13:01:49
#32002/8/20 13:05:55
谢谢!
我的理解是插入一段html语句,那么插入的时候会不会把原来的一些代码给覆盖掉呢?



darkvn

职务:普通成员
等级:1
金币:1.0
发贴:222
注册:2001/11/12 18:23:41
#42002/8/20 13:38:06
答案是肯定的。
原来的会被覆盖!