`
dwdwgo
  • 浏览: 4607 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
try{ InputStream myIn=new ByteArrayInputStream(txt.getBytes()); //将System.in转化为面向字符的流 InputStreamReader ir = new InputStreamReader(myIn); in = new BufferedReader(ir);//为输入流提供缓冲区 while ((s = in.readLine()) != "bye") System.out.println("Read: " + s); } catch(IOException e) {Syst ...
<html> <head> <title></title> <script type="text/javascript" src="jquery.js"></script> </head> <body> <input type="button" onclick="showTable('mailTable');" value="遍历table"/> <input type="b ...
所使用的jquery版本为jquery-1.9.1,浏览器为Chrome 1.通过prop方法获取checked属性,获取的checked返回值为boolean,选中为true,否则为flase <input type="checkbox" id="selectAll" onclick="checkAll()">全选 function checkAll() {   var checkedOfAll=$("#selectAll").prop("checked");   ale ...
博客搬家至http://blog.csdn.net/superit401

js中的in_for循环

    博客分类:
  • js
<!DOCTYPE html> <html> <body> <p>点击下面的按钮,循环遍历对象 "person" 的属性。</p> <button onclick="myFunction()">点击这里</button> <p id="demo"></p> <script> function myFunction() { var x; var txt=""; var person={fname: ...
Global site tag (gtag.js) - Google Analytics