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

cola.xRender解析其中的DOM指令时,DOM元素之间为什么不能有空格? #16

Open
hubshuai opened this issue Mar 9, 2017 · 1 comment

Comments

@hubshuai
Copy link

hubshuai commented Mar 9, 2017

        model.action({
            run: function() {
                var fragment = cola.xRender("<div c-widget='button; caption:Test'>", model);
                $("#htmlDiv").append(fragment);
            }
        });
    });```
@BennyBao
Copy link
Contributor

BennyBao commented Mar 9, 2017

可以有空格,但是你不能直接在string里换行。这属于js语法错误。

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

No branches or pull requests

2 participants