-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
img标签中没有src属性时会出错 #352
Comments
是的,我也遇到过这个问题了;改成var imgUrl = node.attr.src || []即可。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
html2json.js里
如果标签里没有src属性,imgUrl会为空,找不到0的数据报错了,需要加个判断
The text was updated successfully, but these errors were encountered: