Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.0-beta.3正常,用beta.4-7都没有生成内容 #3403

Closed
aswjh opened this issue Aug 8, 2016 · 2 comments
Closed

v2.0.0-beta.3正常,用beta.4-7都没有生成内容 #3403

aswjh opened this issue Aug 8, 2016 · 2 comments
Labels

Comments

@aswjh
Copy link

aswjh commented Aug 8, 2016

下面这个网页用v2.0.0-beta.3/dist/vue.min.js正常,用beta.4-7都没有生成内容

<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" >
    <head>
        <title>vue2 test</title>
        <script src="https://raw.githubusercontent.com/vuejs/vue/v2.0.0-beta.7/dist/vue.min.js"></script>
        <style>
            .a {color: green}
            .b {color: red}
        </style>
    </head>

    <body>
        <div id='test1'>
            <h1 id='content1' :class='active =="x1" ? "a" :"b"'>ttt2345</h1>
        </div>
    </body>

<script>
    vue1 = new Vue({
        el: '#test1',
        data: {
            active: "x1",
        },
    })
</script>

</html>



@yyx990803
Copy link
Member

修正了,不过建议属性全部用双引号,里面的内容用单引号。

@aswjh
Copy link
Author

aswjh commented Aug 8, 2016

原来是这样.谢了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants