<html>
<head><title>jquery_core</title>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
//var $=jQuery();
console.log("返回一个空的jquery对象:"+jQuery());
var aa=$("div>p");
aa.each(function(i){
console.log(aa[i].text());
});
</script>
</head>
<body>
<div><p>div里面穿的一个段落p</p></div>
<form action="#" method="GET">
<input type="text" value="input01">
<input type="radio" value="男">男</input>
</form>
</body>
</html>
时间: 2024-10-29 19:12:07