EN
此内容没有您的语言版本,但有英语版本。

isDefaultNamespace method

Indicates whether or not a namespace is the default namespace for a document.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2Internet Explorer 9

 

Syntax

object.isDefaultNamespace(pvarNamespace, pfDefaultNamespace)

Parameters

pvarNamespace [in]

Type: Variant

The namespace to be compared to the default namespace.

pfDefaultNamespace [out, retval]
C++A pointer to a Boolean that receives one of the following values:
JavaScriptBoolean. Returns one of the following values:

true (true)

The namespace specified in the pfDefaultNamespace parameter is the default namespace for the document.

false (false)

Namespace is not the default.

Return value

Type: Boolean

A pointer to a Boolean that receives one of the following values:Boolean. Returns one of the following values:true

The namespace specified in the pfDefaultNamespace parameter is the default namespace for the document.

false

Namespace is not the default.

Standards information

See also

a
applet
attribute
audio
button
div
document
documentType
frame
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=hidden
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
label
legend
marquee
media
object
optGroup
option
select
source
span
table
textArea
TextNode
video
Reference
lookupNamespaceURI
Other Resources
XML Tutorial: Using Namespaces

 

 

显示:
© 2014 Microsoft