<h1>我的第一段 JavaScript</h1>
<p>请输入数字。如果输入值不是数字,浏览器会弹出提示框。</p>
<input id="demo" type="text">
<script>
function myFunction()
{
var x=document.getElementById("demo").value;
if(x==""||isNaN(x))
{
alert("Not Numeric");
}
}
</script>
<button type="button" onclick="myFunction()">点击这里</button>
</body>
</html>

<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".btn1").click(function(){
  $("p").slideToggle();
  });
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<button class="btn1">Toggle</button>
</body>
</html>

最新文章

  1. Spring-data-jpa 的@modifying注解
  2. js中的什么时候需要用new来实例化?
  3. url编码 中文在url参数中传递,在请求头,响应头中传递,是如何编码的呢?
  4. Jdeveloper 太慢 slowly
  5. BZOJ 1042 硬币购物(完全背包+DP)
  6. Android 热补丁动态修复框架小结
  7. Teaching Your Computer To Play Super Mario Bros. – A Fork of the Google DeepMind Atari Machine Learning Project
  8. PSP0表格二
  9. linux 压缩文件 及压缩选项详解
  10. z-index兼容问题:关于ie6/7下的z-index
  11. nandsim ubi nand nor
  12. css2实现尖角箭头式导航
  13. C# 验证识别基类
  14. HDU 3304 Interesting Yang Yui Triangle lucas定理
  15. 1.如何安装matlab2016a
  16. Objectiv-C UIKit基础 NSLayoutConstraint的使用(VFL实现)
  17. c#读取Excel数据到Gridview
  18. nexus 数据库备份任务webhook 通知
  19. MySQL指令
  20. mysql主从(主备)同步一键配置,配自动检测功能

热门文章

  1. Nginx RTMP 模块 nginx-rtmp-module 指令详解
  2. JVM调优总结(这个总结得比较全面)
  3. 国内DP厂家的相关资料信息
  4. java web 程序---登陆验证session。提示登陆
  5. Php处理时间的函数
  6. (转)使用 linux tar 命令压缩与解压文件
  7. angularJS开发时用到的命令
  8. Splash Screen 加载窗体 [not finished]
  9. Arduino学习笔记A6(补充) - 在串口读取多个字符串,并且转换为数字数组
  10. C# WinForm ProgressBar垂直显示进度和从右向左显示进度