如何在 e4x 中添加另一个同级元素?
如果我想创建:
<foo>
<bar>example1</bar>
<bar>example2</bar>
</foo>
使用 e4x,并且我已经有了:
foo.bar = <bar>example1</bar>
如何添加附加栏标记?
If I want to create:
<foo>
<bar>example1</bar>
<bar>example2</bar>
</foo>
using e4x, and I already have:
foo.bar = <bar>example1</bar>
How do I add the additional bar tag?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以编写另一个文字,
或者使用相关方法:http://www.ibm.com/developerworks/library/x-javascript4x.html(表 1),
HTH
You either write another literal,
or you use the relevant methods: http://www.ibm.com/developerworks/library/x-javascript4x.html (Table-1),
HTH