用 createNode("element","nodename","namespace")
解决方案 »
- 如何缓存jsp页面数据,请大家过来帮帮忙吧!
- IFRAME 顺序加载~~~
- ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●把函数放到参数里 怎么作用域就变了??????????????????
- js 如果提取 url 中参数?
- javascript 动态创建表格TABLE的问题
- 如何做到类似网易两边的不动的Flash
- JavaScript 脚本回调函数如何传递参数!谢谢!!
- Frame问题急需解答,高手请进
- 很难!不会!看看有没有人会!
- 在IE下,使用window.open打开的窗口,在用window.close()关闭时有点慢会有近一秒的延迟
- 请问从一个窗口中弹出另一个窗口,父窗口如何控制子窗口,子窗口如何控制父窗口?给分!!!!
- execCommand
<?xml:namespace prefix="newNS"/>是什么呀?算xml声明吗?如果是也应该是<?xml....?>这种形式呀!请指教!谢谢!
add Method--------------------------------------------------------------------------------Creates a new namespace object and adds it to the collection.SyntaxoNamespace = namespaces.add(sNamespace, sUrn [, sUrl])
ParameterssNamespace Required. String that specifies the name of the namespace.
sUrn Required. String that specifies the Uniform Resource Name (URN) of the namespace to create.
sUrl Optional. String that specifies the URL of the element behavior to import into the namespace. Specifying this parameter is the same as calling the doImport method. Return ValueReturns a namespace object.
先创建元素:
var objElement = document.createElement("<newNS:element/>");
document.body.appendChild(objElement);
....//不断创建元素
document.body.innerHTML += "<?xml:namespace prefix='newNS'/>"; //最后加一个名称空间申明即可。不过我只知其然,而不知所以然,哎,还是郁闷中......???