亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

js函數(shù)定義 庫函數(shù)調(diào)用和自定義函數(shù)寫法

Original 2019-06-22 11:54:44 356
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ù)加油

Release Notes

Popular Entries