SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
	$("p").filter(".intro").css("background-color","yellow");
	// $('#guess1').css("background-color","yellow");
	$('#table').find('td').children().filter(function (idx) {
		// console.log('item', item)
		console.log('this', $(this), this.id)
		if (this.id.match(/guess11/g)) {
			console.log('2', $(this))
			$(this).css("background-color","yellow")
		}
	})
});
</script>
</head>
<body>

<h1>欢迎来到我的主页</h1>
<p>我的名字叫 Donald。</p>
<p class="intro">我住在 Duckburg。</p>
<p class="intro">我爱 Duckburg。</p>
<p>我最好的朋友是 Mickey。</p>
	<table id="table">
		<tr id="guess1">
			<td>
				<div id="guess11">111</div>
			</td>
		</tr>
		<tr id="guess2">
			<td>
				<div id="guess22">222</div>
			</td>
		</tr>
	</table>
</body>
</html>