angular.js - Can angular be used normally after introducing jquery?
天蓬老师
天蓬老师 2017-05-15 17:01:36
0
1
550
As shown in the figure, the jquery file and a test file are introduced into the index of the angular project (these two files can be run in non-angular projects) $( document).ready(function(){
        console.log("LX");
    $(".team").hover(function(){
        console.log("T");
    $(".shadow").css("display","block")
    },function(){$(".shadow").css("display","none")});
    });
This is the code in jqueryShow.js. The console can display the two letters LX, but the subsequent code cannot work. How to solve this problem?
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
为情所困

There is absolutely no problem with angularJS referencing jQuery. You can see it in the angular.js file. After angularJS is started, it will look for whether an external jQuery is referenced. If an external jQuery is referenced, the external one is used. It could be other issues.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template