Loading HTML in the current dom and execute a loaded script

五迷三道 提交于 2019-12-12 01:58:43

问题


In javascript I created a loader for a wizard. I talk about a single page with a wizard section.

Every (new) sequence state of the page loads a HTML section from the server into the wizard dom section of the page and executes a script. The script for this sequence state is also loaded.

I have seen a lot of discussion about loading Dart scripts and this blog post from Sett Ladd. I understand I can only load Dart scripts in isolates.

My questions:

  1. Can I create the above like wizard in Dart?
  2. When I load a script in an isolate, can I access the "current" page dom?

来源:https://stackoverflow.com/questions/24855276/loading-html-in-the-current-dom-and-execute-a-loaded-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!