无法将角度2应用程序与jauery mobile集成。 :( [英] Unable to integrate angular 2 app with jauery mobile. :(
本文介绍了无法将角度2应用程序与jauery mobile集成。 :(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了示例Angular2应用程序,在与jquery mobile集成时,它显示错误:
zone.min.js: 1 未捕获的TypeError:无法读取' zone' >未定义
我添加了
< script src = scripts / jquery-1.11.1.min.js > < / 脚本 >
< link rel = stylesheet href = themes / daysi_ab_17032016 .min.css / >
< link rel = stylesheet href = themes / jquery.mobile.icons.min.css / >
< link rel = 样式表 href < span class =code-keyword> = css / jquery.mobile.structure-1.4.5.min.css / >
< link href =' https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,400italic ' rel =' stylesheet' type =' text / css' >
< script src = SCRIPTS / jquery.mobile-1.4.5.min.js > < / script >
< script >
$( document )。bind(' mobileinit' , function (){
$ .mobile.changePage.defaults.changeHash = 假跨度>;
$ .mobile.hashListeningEnabled = false ;
$ .mobile.pushStateEnabled = false ;
});
< / script >
<! - < span class =code-comment> slider - >
< script type = text / javascript src = scripts / jquery-1.10.2.min.js > < / script >
< script type = text / javascript < span class =code-attribute> src = scripts / jquery.glide.min.js > < / script >
in my index.html那么什么都不行。
但如果我评论上面给出的脚本< script src =SCRIPTS / jquery.mobile-1.4.5.min.js>< / script> ;然后应用程序正常运行。但这是我最需要的标准。 :(
我尝试了什么:
我用谷歌搜索,但是找不到任何相关的答案或文章。
解决方案
( document )。bind(' mobileinit', function (){
.mobile.changePage.defaults.changeHash = false ;
.mobile.hashListeningEnabled = < span class =code-keyword> false ;
I have created the sample Angular2 application, while integrating with jquery mobile,it is showing the error: "
zone.min.js:1 Uncaught TypeError: Cannot read property 'zone' of undefined
"
I added "
<script src="scripts/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" href="themes/daysi_ab_17032016.min.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="css/jquery.mobile.structure-1.4.5.min.css" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,400italic' rel='stylesheet' type='text/css'>
<script src="SCRIPTS/jquery.mobile-1.4.5.min.js"></script>
<script>
$(document).bind('mobileinit', function () {
$.mobile.changePage.defaults.changeHash = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
});
</script>
<!-- slider-->
<script type="text/javascript" src="scripts/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery.glide.min.js"></script>
" in my index.html then nothing works.
but if I comment the above given script "<script src="SCRIPTS/jquery.mobile-1.4.5.min.js"></script> then the application works without error. But That is thevscript which i need the most. :(
What I have tried:
I googled, but couldn't find any related answer or article.
解决方案
(document).bind('mobileinit', function () {
.mobile.changePage.defaults.changeHash = false;
.mobile.hashListeningEnabled = false;
这篇关于无法将角度2应用程序与jauery mobile集成。 :(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文