Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 ajax 调用,我将 renderFile 的输出作为 Json 对象返回。在呈现的文件中,我发布并注册了一个脚本文件。但是,当呈现的 html 附加到 body 元素时,不会加载脚本。加载其他静态列出的脚本。有什么线索吗?
当您调用 render() 或使用 processOutput 参数 = true 调用 renderPartial() 时,将包含已注册的脚本。