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
// what's wrong here? let noscript = document.getElementById('noscript'); noscript.innerHTML = '<p>Please enable JavaScript.</p>'; document.body.appendChild(noscript);
注:本题转自推特一国外的小哥。
The text was updated successfully, but these errors were encountered:
1、使用DOM没有判空; 2、id和变量名不应该使用html标签,命名不规范; 3、不能对为空或null的dom使用innerHTML属性; 4、appendChild()方法的参数不能是空或null;
可以在浏览器运行一下,看一下报错!
Sorry, something went wrong.
No branches or pull requests
注:本题转自推特一国外的小哥。
The text was updated successfully, but these errors were encountered: