使用id也需要每次都重复写没办法复用找了一个解决办法
<div class="echarts my-echarts" ref="echarts" id="echarts"></div>
将id...
yekong
3个月前 (11-28) 180℃
0喜欢
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
...
yekong
4个月前 (11-19) 350℃
0喜欢
created: function () {
this.getdata();
let that = this;
this.time = window.setInterval(() => {
setTimeout(() => {...
yekong
4个月前 (11-14) 187℃
1喜欢
解决办法在dataZoom 里添加
filterMode: 'empty'解决
dataZoom: [{
show: true,
height: 8,
start: 7,
bo...
yekong
4个月前 (11-10) 291℃
2喜欢
props: {
follow: {
type: Number | String,
default() {
return 0;
}
},
...
yekong
4个月前 (11-09) 1585℃
9喜欢
功能提取自腾讯im vue版本中
演示地址
https://yelingkong.github.io/vuebiaoqing/
github地址
https://github.com/yelingkong/vuebiaoqing.git
...
yekong
4个月前 (10-31) 324℃
0喜欢
安装
yarn add ajv -S
例子
var Ajv = require('ajv')
// or ESM/TypeScript import
const schema = {
type: 'string',
minLengt...
yekong
4个月前 (10-31) 342℃
0喜欢
创建.eslintignore
输入需要eslint忽略的文件夹
schema-tests
忽略前
忽略后
...
yekong
4个月前 (10-27) 290℃
1喜欢
json-schema用来定义JSON数据,用JSON格式来告诉我们想要得到的数据的结构是什么样子的。
json是通用的数据类型。可以在不同的语言中使用。
校验数据
校验对象是否是我们想要的数据。
ajv前端常用的库
ajv官网
ajv.js.org
实例代码
var Ajv ...
yekong
4个月前 (10-27) 243℃
0喜欢