<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
</head>
<body>
<p name="test">测试</p>
<script>
$("[name=test]").css("color","red")
</script>
</body>
</html>