gpt4 book ai didi

dart - 在Dart中的命名空间中创建元素

转载 作者:行者123 更新时间:2023-12-03 03:03:19 33 4
gpt4 key购买 nike

我正在尝试在Dart中的特定命名空间中创建一个元素。这是最好的方法吗?

document.$dom_createElementNS(namespace, tag);

文档 here

另外,函数名称中的$符号是否有特定原因?

干杯

最佳答案

这是a quote from Pete Blois(重点是我的):

As part of our API cleanup process, we're planning on converting all of the DOM $dom_ APIs to be private.

These APIs have been available as lower-level alternatives to existing APIs, but their use has not been recommended.

Please let us know if you are using any of the $dom_ APIs and why, we'd like to fix those up before making this change.


但是,在现有的API中找不到该函数的等效项。因此,请考虑 posting your question in the threadfiling an issue的最后一句话。

关于dart - 在Dart中的命名空间中创建元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17504270/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com