angular.js - 怎么使用angularjs呢,{{}}取值没用??
淡淡烟草味
淡淡烟草味 2017-05-15 17:00:51
0
1
537

刚学就撞到墙?这是直接复制的代码,都不行......用的是1.5.3,直接在本地Tomcat下的后台项目下运行的呀

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/angular.min.js"></script>
</head>
<body>

<p ng-app="" ng-init="firstName='John'">

    <p>在输入框中尝试输入:</p>
    <p>姓名:<input type="text" ng-model="firstName"></p>
    <p>你输入的为: {{firstName}} </p>

</p>

</body>
</html>

怎么回事?

淡淡烟草味
淡淡烟草味

reply all(1)
習慣沉默

Your angular project hasn’t been started yet?

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