<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>动态插入节点方法</title>
<script type="text/javascript" src="Jscript/jquery-1.8.2.js"></script>
<style type="text/css">
body{font-size:13px}
</style>
<script type="text/javascript">
$(function() {
$("div").append(retHtml); //插入内容
function retHtml() {
var str = " <b>Write Less Do More</b> ";
return str;
}
})
</script>
</head>
<body>
<div>jQuery</div>
</body>
</html>
动态插入节点方法
最新推荐文章于 2025-02-14 16:08:24 发布
