java_function.js
$(#call).click(function(){
alert("gogo");
});
ajax_call.js
This function called when scroll down
#append $(#append).append(data); (data is a.html)
a.html
<script type=text/javascript src=java_function.js />
<script type=text/javascript src=aja
我正在使用ember开发一个项目。请帮我改正这个错误。我无法在本地运行我的项目。点击ember server后,构建成功。但在点击时,http://localhost:4200加载空页面并出现控制台错误。 Uncaught Error: Assertion Failed: The initializer 'App Version' has already been registered
at assert (index.js:172)
at Function.initializer (index.js:420)
at registerInitializ
在使用ng 命令在AOT模式下运行角应用程序(在浏览器中点击应用程序url )时,我得到了以下错误。请不要说我在aot模式下构建应用程序时没有错误。当我点击应用程序url时,我会在浏览器中得到这个错误。
`ERROR TypeError: i28.ɵd is not a constructor
at eval (app.module.ngfactory.js:94)
at _callFactory (core.js:10955)
at _createProviderInstance$1 (core.js:10897)
at resolveNgModuleDep
我需要测试“事件”在JavaScript中,如按钮点击,点击link..etc使用"Mocha“。
我有3个文件1) Login.html,2) Application.js,3) test.js。
1) Application.js文件包含以下代码:
function doclick() {
document.getElementById("myBtn").innerHTML = alert("Going to test Events in JavaScript");
}
2) test.js包含如下代码:
var expect = chai.e