非javascript人员能否修复此错误?有什么建议吗?谢谢你的帮助?
控制台显示:
代码为: <script async src="https://cdn.filmpuls.info/jquery/jquery.min.js"></script>
<script type="text/javascript">
function insertBefore(e, t) {
t.parentNode.insertBefore(e, t),
e.classList.add("entry-content")
}
var intocontent = document.getElementsByClassName("intro")
, intocontentheading = document.getElementsByClassName("mh-meta");
insertBefore(intocontent[0], intocontentheading[0]);
var postId = "55687"
, postIdClass = ".post-" + postId;
console.log(postIdClass),
jQuery(document).ready(function() {
jQuery("body.single .mh-widget").each(function(e) {
jQuery(this).find(postIdClass).length && jQuery(this).find(postIdClass).hide()
})
});
</script>