本人菜鸟一枚,进入公司不久,任务不多,期待从零开始学习js,请各位大牛指导!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>JsStudy</title>
<script type="text/javascript">
function Write() {
var x = document.getElementById("demo");
x.innerHTML="学习Javascript";
}
</script>
</head>
<body>
<div>
<p id="demo">
</p>
</div>
<button type="button" οnclick="Write()" >点击我看看
</button>
</body>
</html>
首先从第一个小程序开始吧!