We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
html2json.js里
var imgUrl = node.attr.src; if (imgUrl[0] == '') { imgUrl.splice(0, 1); }
如果标签里没有src属性,imgUrl会为空,找不到0的数据报错了,需要加个判断
The text was updated successfully, but these errors were encountered:
是的,我也遇到过这个问题了;改成var imgUrl = node.attr.src || []即可。
Sorry, something went wrong.
No branches or pull requests
html2json.js里
如果标签里没有src属性,imgUrl会为空,找不到0的数据报错了,需要加个判断
The text was updated successfully, but these errors were encountered: