js格式化后输出的值
Mon Nov 30 2020 11:00:00 GMT+0800 (中国标准时间)
但是传值给对象后的日期和原值对不上
serviceStartTime: "2020-11-30T3:00:00Z"
解决办法使用moment
...
yekong
4年前 (2020-11-25)
喜欢
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
...
yekong
4年前 (2020-11-19)
喜欢
created: function () {
this.getdata();
let that = this;
this.time = window.setInterval(() => {
setTimeout(() => {...
yekong
4年前 (2020-11-14)
喜欢
解决办法在dataZoom 里添加
filterMode: 'empty'解决
dataZoom: [{
show: true,
height: 8,
start: 7,
bo...
yekong
4年前 (2020-11-10)
喜欢
第一种方式
使用竖线分割
props: {
follow: {
type: Number | String,
default() {
return 0;
...
yekong
4年前 (2020-11-09)
喜欢
功能提取自腾讯im vue版本中
演示地址
https://yelingkong.github.io/vuebiaoqing/
github地址
https://github.com/yelingkong/vuebiaoqing.git
...
yekong
4年前 (2020-10-31)
喜欢
安装
yarn add ajv -S
例子
var Ajv = require('ajv')
// or ESM/TypeScript import
const schema = {
type: 'string',
minLengt...
yekong
4年前 (2020-10-31)
喜欢
创建.eslintignore
输入需要eslint忽略的文件夹
schema-tests
忽略前
忽略后
...
yekong
4年前 (2020-10-27)
喜欢
json-schema用来定义JSON数据,用JSON格式来告诉我们想要得到的数据的结构是什么样子的。
json是通用的数据类型。可以在不同的语言中使用。
校验数据
校验对象是否是我们想要的数据。
ajv前端常用的库
ajv官网
ajv.js.org
实例代码
var Ajv ...
yekong
4年前 (2020-10-27)
喜欢
首先先安装
npm install --save-dev --save-exact prettier
npm install --global prettier
phpstorm打开设置找到plugins搜索prettier然后安装。重启phpstorm
创建配置文件
项...
yekong
4年前 (2020-10-27)
喜欢