This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="main.css"> | |
<link rel="stylesheet" href="main.css"> | |
<style> | |
* { | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
.table { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = { | |
name: "kuch", | |
age: 12 | |
}; | |
// 检查性别是否不为空且是否男 | |
const validator = { | |
types: {}, | |
message: [], | |
//配置, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 定义一个基础命令 | |
class Love { | |
express() { | |
cosnole.log("to be brave"); | |
} | |
} | |
// 定义一个命令对象 | |
class Valentine extends Love { | |
expressToMysun() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
button { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div style="display:inline-block"> | |
<el-button | |
v-bind="$attrs" | |
@click="dialogVisible=true" | |
>导出</el-button> | |
<el-dialog :visible.sync="dialogVisible" title="下载"> | |
<label>请选择下载的条数</label> | |
<el-select v-model="page" clearable placeholder="请选择下载的条数"> | |
<el-option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js | |
*/ | |
/* | |
* ESLint 配置文件优先级: | |
* .eslintrc.js(输出一个配置对象) | |
* .eslintrc.yaml | |
* .eslintrc.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cnt = 50 | |
var btns = document.querySelector('#container').querySelectorAll('.btn-greet') | |
for(var j=0 ;j<btns.length;j++){ | |
if(Math.random() -0.3>0){ | |
if(cnt>0){ | |
btns[j].click() | |
} | |
cnt-- | |
} |