01 2017 档案
摘要:!function () { console.group('for/in') var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; for (var i in array) { i++; if (i 3) { continue; } if (i 5) { break
阅读全文
摘要:a方法完成后,再执行b方法 function a(callback) { for(var i=0;i<20;i++){ console.log(i); } callback(); } function b() { console.log("000"); } function test() { a(b
阅读全文
摘要:先获取各入口链接 再分别获取内容 var c = new Crawler({ maxConnections : 1000, // This will be called for each crawled page callback : function (error, res, done) { if
阅读全文
摘要:转码this.getdata=eval(res.body); //native 转换 utf8function Native2UTF8() { var n_s=$("#n_source").val(); if ('' == n_s) { alert('请输入Native字符串'); return;
阅读全文
摘要:共同点:都是保存在浏览器端,且同源的。创建:sessionStorage.setItem("key", "value");localStorage.setItem("site", "js8.in");获取:var value = sessionStorage.getItem("key"); var
阅读全文
摘要:var example2 = new Vue({ el: '#example-2', data: { name: 'Vue.js' }, // 在 `methods` 对象中定义方法 methods: { greet: function (event) { // `this` 在方法里指当前 Vue
阅读全文
摘要:<video width="500" autoplay controls autobuffer> <source src="video/gnet_en.mp4" type="video/mp4"> Your browser does not support the video tag. <objec
阅读全文
摘要:html { filter: grayscale(100%);//IE浏览器 -webkit-filter: grayscale(100%);//谷歌浏览器 -moz-filter: grayscale(100%);//火狐 -ms-filter: grayscale(100%); -o-filte
阅读全文
摘要:.waps{ background:url(07158.bmp) no-repeat top center fixed; width:1004px; text-align:center; line-height:28px; font-size:12px; font-family:Arial, Hel
阅读全文
摘要:A页面:<!doctype html><html class="no-js" lang=""><head> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Untitled Doc
阅读全文
摘要:对于HTML元素本身就带有的固有属性,在处理时,使用prop方法。对于HTML元素我们自己自定义的DOM属性,在处理时,使用attr方法。<input id="chk1" type="checkbox" />是否可见<input id="chk2" type="checkbox" checked="
阅读全文
摘要:<!doctype html><html class="no-js" lang=""><head> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Untitled Documen
阅读全文
摘要:<div id="example"> <p>{{msg}}</p> <ul> <li v-for="item in msg">{{item.a}} <input type="text" v-on:change="aa" v-model="item.c"> {{item.b}} </li> </ul>
阅读全文
摘要:<div> <p><span></span></p> <span></span> <span></span><.div>div span{会影响到p里面的span}div > span{p里面的span没有被影响}
阅读全文
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body> <div id="main"> {{text}} <textarea v-model="text"></
阅读全文
摘要:ie9中有些版本 如果有console.log输出,就会中断 按F12才能往下执行
阅读全文
摘要:输出整除2的数evenNumbers: function () { return this.numbers.filter(function (number) { return number % 2 0 }) } 数组偏移值filteredItems: function () { return thi
阅读全文

浙公网安备 33010602011771号