I made it with springMVC, hibernate, etc. I started to make a lot of things with easyui, and then I wanted to try using angularjs to do some functions. However, after adding the angularjs file, angularjs was not included in the code. It works...
What exactly is a conflict? Or can't angularjs be used in jsp web pages?
There is very little information online....
Where is the conflict? Anyone have such experience? ?
Simple code: in a separate html file, run, no problem. The jsp added to the project will not work
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
<p ng-app="">
<p>名字 : <input type="text" ng-model="name"></p>
<h1>Hello {{name}}</h1>
</p>
</body>
</html>
==========================================
It is very likely to conflict with easyui. I tried it in a project without easyui and it was no problem. It seems...Hey
業(yè)精于勤,荒于嬉;行成于思,毀于隨。
It may be that there is a scope conflict between two libraries or several libraries, but it has never been used like this before. Nowadays, many applications have separated the front-end and back-end, and the front-end adjusts the back-end interface to implement functions. It is recommended that you do not introduce too many front-end frameworks, otherwise even if you adjust it this time, future maintenance will be a big problem.