我正在尝试加载一个脚本,该脚本一旦触发就会生成iframe和天气小部件。我可以适当地添加脚本,但是不会被调用并且不会生成iframe
我尝试将脚本直接添加到渲染器中,它将短暂加载iframe,然后切换回脚本标签
// this is a computed property
get totalRows() {
return this.SearchResultItems.length;
}
答案 0 :(得分:1)
注意控制台中显示的警告:
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.