SWIG AngulaJS
<!doctype html>
<html ng-app>
<head>
<script src="//www.w3cschool.cc/try/angularjs/1.2.5/angular.min.js"></script>
</head>
<body>
Hello {{'World'}}!
Name: <input type="text" ng-model="name">
You wrote: {{ name }}
</body>
</html>
貌似swig在绘制的时候会直接去掉没有值的{{name}},这样就使前台angulajs的使用有问题了 有办法回避这个问题吗
3 回复