05 2020 档案
发表于 2020-05-31 10:39阅读:1396评论:0推荐:1
摘要:1.文件-->首选项-->用户代码片段-->点击新建代码片段--新建vue.json { "Print to console": { "prefix": "vue", "body": [ "<!-- $1 -->", "<template>", "<div class='$2'>$5</div>",
阅读全文 »
发表于 2020-05-29 11:21阅读:510评论:0推荐:0
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script type="text/javascript"> const target = {}; const obj1 = {
阅读全文 »
发表于 2020-05-27 13:43阅读:13306评论:2推荐:2
摘要:/* * @Description: umi3.0基础配置文件 文件多时候移到config文件下面单独配置模块 如 路由文件 .umirc.ts配置文件 * @Version: 2.0 * @Autor: lhl * @Date: 2020-03-20 14:15:48 * @LastEditors
阅读全文 »
发表于 2020-05-26 18:02阅读:1612评论:0推荐:0
摘要:import { Button, Result } from 'antd'; import React from 'react'; import { history } from 'umi'; // FC = Functional Component 使用这个类型有个好处就是,提醒你必须返回一个Re
阅读全文 »
发表于 2020-05-22 09:52阅读:635评论:0推荐:0
摘要:1.首先建立 custom-tab-bar 文件夹 包含 index.js index.json index.wxml // index.js Component({ data: { selected: 0, color: "#7A7E83", selectedColor: "#3cc51f", l
阅读全文 »
发表于 2020-05-21 10:29阅读:546评论:0推荐:0
摘要:最近在看小程序文档整理下简单的语法场景 <!--index.wxml--> <!-- 模板导入 --> <!-- 于此对应的还有 include 可以将目标文件除了 <template/> <wxs/> 外的整个代码引入,相当于是拷贝到 include 位置 --> <import src="../
阅读全文 »
发表于 2020-05-19 15:27阅读:3765评论:0推荐:0
摘要:1.在根目录创建components文件夹 在components下创建 watermark 文件夹 再在其下面创建page 得到 watermark.js watermark.json watermark.wxml watermark.wxss; 2. 使用规则在相关页面的json配置文件下配置
阅读全文 »
发表于 2020-05-14 18:03阅读:810评论:0推荐:1
摘要:在根目录新建http文件夹 新建 request.js文件 apiConfig.js文件 // request.js文件 const request = { // 将接口参数和公共参数合并 buildParams(params) { // const uToken = wx.getStorageSy
阅读全文 »
发表于 2020-05-14 14:27阅读:3057评论:0推荐:0
摘要:研究小程序的路上越走越远....坑很多 很不习惯刚刚开始 在utils文件夹下面新增api.js http.js文件 // http.js module.exports = { http(url, method, params) { // 获取token,自行获取token和签名,token和签名表
阅读全文 »
发表于 2020-05-13 14:51阅读:845评论:0推荐:0
摘要:// pages/test/test.js Page({ /** * 页面的初始数据 */ data: { headerList: [{ name: '表头一', number: 'A201', type: "标准间" }, { name: '表头二', number: 'A202', type:
阅读全文 »
发表于 2020-05-11 16:52阅读:8424评论:6推荐:0
摘要:1.首先建立 custom-tab-bar 文件夹 包含 index.js index.json index.wxml // index.js文件Component({ data: { active: 0, list: [ { "url": "/pages/index/index", "icon":
阅读全文 »
发表于 2020-05-10 17:07阅读:842评论:0推荐:0
摘要:1.下载好稳定版的微信开发者工具 2.创建小程序项目文件夹(如:testDemo) 3.建好用开发者工具编译器打开 然后初始化package.josn 执行安装 vant Weapp: npm i @vant/weapp -S --production 勾上增强编译和使用npm模块 接着点击工具构建
阅读全文 »
发表于 2020-05-08 09:30阅读:5278评论:1推荐:0
摘要:<!-- * @Description: element ui表格校验 由于最近太多人问这个需要怎么校验所以贴了一个demo供参考 * @Version: 2.0 * @Autor: lhl * @Date: 2020-01-15 11:15:40 * @LastEditors: lhl * @La
阅读全文 »
发表于 2020-05-07 16:19阅读:677评论:0推荐:0
摘要:<!-- * @Description: * @Version: 2.0 * @Autor: lhl * @Date: 2020-01-15 11:15:40 * @LastEditors: lhl * @LastEditTime: xxx --> <template> <div> <el-tabl
阅读全文 »