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

报错反馈 #12

Closed
vivine opened this issue Jul 11, 2017 · 1 comment
Closed

报错反馈 #12

vivine opened this issue Jul 11, 2017 · 1 comment

Comments

@vivine
Copy link

vivine commented Jul 11, 2017

line 358、line 363、line368 创建的是input元素,但用了 .html(),虽然JQ不会出现啥错误,但是当给一个元素使用 .html() 参数传的是一个 undefined 变量的话,会导致后面的appendTo报错,执行不下去。

建议:
1、初始化_html 这个变量的时候 ,把它初始化为空
2、创建完input后不要跟 .html() 函数,即去掉 .html(_html)

@ciaoca
Copy link
Owner

ciaoca commented Jul 12, 2017

感谢,已删除这部分多余代码

@ciaoca ciaoca closed this as completed Jul 12, 2017
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