<!DOCTYPE html>
<html>
<head>
<title>ceshi </title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
const container = document.getElementById("container")
const child = $("<div>hello world</div>")
container.appendChild(child)
})
</script>
</head>
<body>
<div id="container"></div>
</body>
</html>
the error is as follows:
Uncaught TypeError: Failed to execute "appendChild" on "Node": parameter 1 is not of type "Node".
jquery does not generate a node object, so how do you get a node object from the object generated by jquery?