本人学习时间不长,看MSDN中关于HTML的文档
比如这一段
Sets or retrieves a comma-separated list of content types.SyntaxHTML <INPUT ACCEPT = sAccept... >
Scripting INPUT.accept(v) [ = sAccept ] Possible ValuessAccept String that specifies or receives comma-separated list of content types. The property is read/write. The property has no default value.Res
我不知道INPUT.accept(v)中的V代表什么意思,是变量吗,很多属性有这样的访问方式,不知什么意思
比如这一段
Sets or retrieves a comma-separated list of content types.SyntaxHTML <INPUT ACCEPT = sAccept... >
Scripting INPUT.accept(v) [ = sAccept ] Possible ValuessAccept String that specifies or receives comma-separated list of content types. The property is read/write. The property has no default value.Res
我不知道INPUT.accept(v)中的V代表什么意思,是变量吗,很多属性有这样的访问方式,不知什么意思
在w3c中accept指的是内容的类型http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4.1
Syntax
HTML <INPUT ACCEPT = sAccept... >
Scripting [ sAccept = ] INPUT.accept [ = v ] 此处的v就是赋给属性的值了
-----------------------
如果是 INPUT.accept(v) [ = sAccept ]
accept是一集合类型,v应该表示对集合的索引. INPUT.accept("xxxx")
Scripting object.disabled(v) [ = sDisabled ]
Applies To OPTION, OPTGROUP 这个DISABLED也是一个集合吗?,好像也有点不对
DISABLED Attribute | disabled Property--------------------------------------------------------------------------------Sets or retrieves a value that indicates whether the user can interact with the object. SyntaxHTML <ELEMENT DISABLED ... >
Scripting [ bDisabled = ] object.disabled
你可以查一下网上的 http://msdn.microsoft.com/en-us/library/ms533060(VS.85).aspx
比如 我的2005对于VALUE(PARAM)的内容为
VALUE Attribute | value Property--------------------------------------------------------------------------------Sets or retrieves the value of an input parameter for an element.What's New for Microsoft Internet Explorer 6
The value property is now read/write. SyntaxHTML <PARAM VALUE = p... >
Scripting PARAM.value(v) [ = p ] 。。而我在微软网站上看到的是
VALUE Attribute | value Property
Sets or retrieves the value of an input parameter for an element.SyntaxHTML <ELEMENT VALUE = p... >
Scripting [ p = ] object.value [ = v ] Possible Values
。。