运行实例
代码
<template>
<div class="echartsB">
<div class="echarts1s" ref="echarts">
...
yekong
3年前 (2022-06-05)
喜欢
运行实例
代码
<template>
<div class="echartsB">
<div class="echarts1s" ref="echarts">
...
yekong
3年前 (2022-06-05)
喜欢
/**
* @Author: 858834013@qq.com
* @Name: labelList
* @Date: 2022-05-25
* @Desc:
*/
<template>
<div class="labelList"&g...
yekong
3年前 (2022-06-05)
喜欢
if (!uni.$u.test.rangeLength(this.CustomerName, [2, 50])) {
uni.showToast({
title: '请输入企业名称,长度不能超过50字符',
icon: 'none'
})
retur...
yekong
3年前 (2022-06-04)
喜欢
数据格式
接口校验数据的时候,有时候会返回一组数据,这就需要遍历处理一下,然后返回其中一条错误。
errors: {,…}
DeductionRate: [,…]
DeliveryTimeout: [,…]
Price: ["Error converting value...
yekong
3年前 (2022-06-04)
喜欢
for…in…
var obj = {'0':'a', '1':'b', '2':'c'};
for(let i in obj){
console.log(i,":",obj[i]);//{0:a,1:b,2:c}
}
Object.keys
var...
yekong
3年前 (2022-06-04)
喜欢
uniapp app开发只选择图片,获取图片文件列表,并不上传图片。
<template>
<div class="fileListMain">
<u-cell-group>
<u-cell title=...
yekong
3年前 (2022-06-03)
喜欢
html
<u-cell title="录像" @click="saveVideo()" :isLink="true" value="开始录像">
<view slot=&...
yekong
3年前 (2022-06-03)
喜欢
生成主题色
在线生成主题色
生成后,下载主题色,放入项目目录。
引入主题色
import '../theme/index.css'
import ElementUI from 'element-ui'
import Vue from 'vue'
Vue.use(ElementU...
yekong
3年前 (2022-06-03)
喜欢
通过aspectScale设置地图宽高比例
aspectScale
geo: [
{
map: 'js',
roam: false, //是否允许缩放
zoom: 1.1,...
yekong
3年前 (2022-06-02)
喜欢