为了账号安全,请及时绑定邮箱和手机立即绑定
慕课网数字资源数据库体验端
JavaScript进阶篇_学习笔记_慕课网
为了账号安全,请及时绑定邮箱和手机立即绑定

JavaScript进阶篇

慕课官方号 页面重构设计
难度入门
时长 8小时55分
  • 光标聚焦事件(onfocus) 当网页中的对象获得聚点时,执行onfocus调用的程序就会被执行。 如下代码, 当将光标移到文本框内时,即焦点在文本框内,触发onfocus 事件,并调用函数message()。
    查看全部
  • 鼠标移开事件(onmouseout) 鼠标移开事件,当鼠标移开当前对象时,执行onmouseout调用的程序。 <script type="text/javascript"> function message(){ alert("不要移开,点击后进行慕课网!"); } function </script> </head> <body> <form> <a href="http://www.imooc.com" onmouseout="message()">点击我</a> </form>
    查看全部
  • 鼠标经过事件(onmouseover) 鼠标经过事件,当鼠标移到一个对象上时,该对象就触发onmouseover事件,并执行onmouseover事件调用的程序。 现实鼠标经过"确定"按钮时,触发onmouseover事件,调用函数info(),弹出消息框,代码如下: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> 鼠标经过事件 </title> <script type="text/javascript"> function info(){ confirm("请输入姓名后,再单击确定"); } </script> </head> <body> <form> 密码:<input type="text" name="password"> <input type="button" name="button" value="确定2" onmouseover="info()"> <!-- 当鼠标经过“确定”按钮时,触发onmouseover="info()" --> </form> </body> </html>
    查看全部
  • 学会二维数组之后 来做这个作业
    查看全部
    0 采集 收起 来源:编程练习

    2017-11-10

  • 鼠标单击事件( onclick ) onclick是鼠标单击事件,当在网页上单击鼠标时,就会发生该事件。同时onclick事件调用的程序块就会被执行,通常与按钮一起使用。 注意: 在网页中,如使用事件,就在该元素中设置事件属性。
    查看全部
  • 主要事件表: 事件 说明 onclick 鼠标点击事件 onmouseover 鼠标经过事件 onmouseout 鼠标移开事件 onchange 文本框内容改变事件 onselect 文本框内容被选中事件 onfocus 光标聚集 onblur 光标离开 onload 网页导入 onunload 关闭网页
    查看全部
    0 采集 收起 来源:什么是事件

    2017-11-10

  • Use checked true/false, not True/False Pay attention to the order of specs in for loop
    查看全部
  • getElementsByName, not getElementByName
    查看全部
  • quote "con"
    查看全部
    0 采集 收起 来源:认识DOM

    2018-03-22

  • Method 1. setTimeout(): need to call function count() in <javascript> after definition. Method 2. setInterval(): setInterval should be inside the function count(). no need to call the function. innerHTML: change the content inside corresponding <id> tag Use <span>
    查看全部
    0 采集 收起 来源:编程练习

    2018-03-22

  • After denoting i=setTimeout(...), we don't need to call the setTimeout() in function startCount() again. (Similar to cancelling setInterval() )
    查看全部
  • Don't have to denote a new variable as setInterval(clock,1000). However, when using clearInterval, we need to assign setInterval(...) a variable, which is ID
    查看全部
  • <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>二维数组</title> <script type="text/javascript"> var i,j; var arr=new Array; for(i=1;i<4;i++){ arr[i]=new Array; for(j=1;j<7;j++){ arr[i][j]=i*j; document.write(arr[i][j]+"&nbsp&nbsp"); if(j>5){ document.write("</br>"); } } } </script> </head> <body> </body> </html>
    查看全部
    0 采集 收起 来源:二维数组

    2018-03-22

  • The specs in window.open also need to be added with "..."
    查看全部
    0 采集 收起 来源:window对象

    2018-03-22

  • firefox浏览器如果提交没反应可以试试看是不是多了不该有的空格
    查看全部
    0 采集 收起 来源:编程练习

    2017-11-09

举报

0/150
提交
取消
课程须知
你需要具备HTML、css基础知识,建议同学们也可以想学习下js入门篇,快速认识js,熟悉js基本语法,更加快速入手进阶篇!
老师告诉你能学到什么?
通过JavaScript学习,掌握基本语法,制作简单交互式页面
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!