This is 城市。它因 而闻名。

”-6ren"> This is 城市。它因 而闻名。

”-我是编码新手 在下面的 pgm 中,任何人都可以帮我找出为什么 ng-bind 不起作用吗? 提前致谢。 Angular js Welocme!Please enter valu-6ren">
gpt4 book ai didi

javascript - NG-bind 不适用于 "

This is 城市。它因 而闻名。

转载 作者:行者123 更新时间:2023-12-03 06:31:25 27 4
gpt4 key购买 nike

我是编码新手

在下面的 pgm 中,任何人都可以帮我找出为什么 ng-bind 不起作用吗?

提前致谢。

<html>
<head>
<title>Angular js</title>
</head>
<body>
<script scr="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"> </script>
<div ng-app="">
<p>Welocme!Please enter values.</p>
<p>This is _________ (a)city.It is famous for __________(b).</p>
<p>Please enter your inputs.</p>
<p>a.<input type="text" ng-model="city"> b.<input type="text" ng-model="famous"> </p>

<p>This is <span ng-bind= "city"></span> city.It is famous for <span ng-bind= "famous"></span> .</p>
</div>
</body>
</html>

最佳答案

它确实有效。 <强> JSFiddle 。这是一个简单的类型错误。使用 src 而不是 scr

src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"

关于javascript - NG-bind 不适用于 "<p>This is <span ng-bind= "city"></span> 城市。它因 <span ng-bind= "famous"></span> 而闻名。</p>”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38430759/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com