简体   繁体   English

Awesomium:包括外部javascript

[英]Awesomium: Include external javascript

I'm trying to use functions from external javascript files which are included in my html page with the "script" tag. 我正在尝试使用来自外部javascript文件的功能,这些文件包含在我的html页面中,带有“ script”标签。 Javascript functions which are implemented directly in the html page seem to work without problems but the functions from the external javascript files aren't executed. 直接在html页面中实现的Javascript函数似乎可以正常工作,但是未执行外部Javascript文件中的函数。 Is there a way to get these functions working? 有没有办法使这些功能起作用?

如果要加载外部资源(例如JavaScript文件),则需要使用ResourceInterceptor拦截该调用,然后将文件注入响应中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM