E4X 中的 getElementsByTagName
我正在寻找在 E4X 中获取函数内部未知标记名(如 DOM getElementsByTagName)的元素数组的可能性。
我的第一个想法是:
(function (doc, tag) {
return doc..[tag];
})
有机会这样做吗?
I'm searching a possibility to get an array of elements in E4X for an unknown tagname (like the DOMs getElementsByTagName) inside of a function.
My first thought was something like:
(function (doc, tag) {
return doc..[tag];
})
Is there any chance to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
并且总是有评估:)
And there's always eval :)