这是我到目前为止,由于某种原因,文本不会变成蓝色 - >
Testing.html:
<html>
<head>
<script src = "jquery-1.5.min.js" type = "text/javascript"></script>
<script src = "get_comments.js" type = "text/javascript"></script>
</head>
<body>
<div id = "button">testing this out</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
get_comments.js:
$("#button").css("color","blue");
Run Code Online (Sandbox Code Playgroud)
看起来你忘了$之前("#button").css("color","blue");
$("#button").css("color","blue");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
99 次 |
| 最近记录: |