abstract:<!DOCTYPE html><html><head charset='utf-8'> <title></title></head><body> <script type="text/javascript"> // var x="確定還是取消"
<!DOCTYPE html>
<html>
<head charset='utf-8'>
<title></title>
</head>
<body>
<script type="text/javascript">
// var x="確定還是取消"
// var r=confirm(x);
// alert(r)
// 這里是確認(rèn)框調(diào)用
// var a="你叫什么名字"
// var bb=prompt(a)
// alert(bb)
// 這里是提示框的調(diào)用
// function 函數(shù)名稱(參數(shù)1,參數(shù)2) {
// // body...
// // 函數(shù)體
// }
// function test(name,age){
// alert("姓名為:"+name+"年齡為:"+age)
// }
// test('小貓','58')
function myfovus(x){
x.style.background="pink"
}
function myonclick(y){
y.style.background="red"
}
function bianyuan(c){
c.style.borderRadius="50px"
}
function yidong(jj){
jj.
}
</script>
姓名:<input type="text" name="" onfocus="myfovus(this)">
<div style="width: 100px;height: 100px;border:1px solid #ccc;" onclick="myonclick(this)"></div>
<div style="width: 100px;height: 100px;border:1px solid #ccc; background-color: blue;" onclick="bianyuan(this)"></div>
</body>
</html>
Correcting teacher:查無此人Correction time:2019-06-22 17:04:45
Teacher's summary:完成的不錯。每行js和jq語句結(jié)束增加;號。繼續(xù)加油