摘要: <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><button onclick="move()">点我跳转</button><script> //闭包 f 阅读全文
posted @ 2017-10-09 10:58 johnny-cli 阅读(207) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> div { width: 300px; height: 300px; margin: 0 auto; box-si 阅读全文
posted @ 2017-09-29 15:18 johnny-cli 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> // apply与call的基本用法 function add(a, b) { retu 阅读全文
posted @ 2017-09-28 10:27 johnny-cli 阅读(134) 评论(0) 推荐(0) 编辑
摘要: sessionStorage举例说明 阅读全文
posted @ 2017-09-15 15:19 johnny-cli 阅读(743) 评论(0) 推荐(0) 编辑
摘要: Node的文件和文件系统API位于fs模块中; var fs=require("fs")//加载文件系统API 同步读取文件,通过传递编码获得文本而非字节; var text = fs.readFileSync("config.json","utf-8"); 异步读取二进制文件,通过传递函数获得数据 阅读全文
posted @ 2017-09-15 10:17 johnny-cli 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1.shift//删除原数组的第一项,并返回删除元素的值,如果数组为空则返回undefined var a=[1,2,3,4,5];var b=a.shift();//a:[2,3,4,5] b:1 2.unshift//将参数添加到原数组开头,并返回数组的长度 var a=[1,2,3,4,5]; 阅读全文
posted @ 2017-09-15 10:13 johnny-cli 阅读(799) 评论(0) 推荐(0) 编辑
摘要: 1.html内容 <div class="row"> <div class="col-sm-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5>趋势图</h5> </div> <div class="ibox-co 阅读全文
posted @ 2017-09-07 15:26 johnny-cli 阅读(2135) 评论(0) 推荐(0) 编辑