阅读背景:

为什么角度js没有使用最后赋值?

来源:互联网 
<html>
    <head>
        <title>Test</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="angular.js"></script>
    </head>
    <body ng-app="">
        <p>There {{count = 1; (count == 1 ? "is" : "are")}} one of them</p>
        <div ng-init="count = 7; unit = 'days'; collection = 'week'">
            <p>
                There are {{count}} {{unit}} in a {{collection}}.
            </p>
        </div>
    </body>
</html>
<html>
    <head>
        <title>Test</title>
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: