上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 单个上传 //选择图片 uploadImg() { const that = this; wx.chooseMessageFile({ count: 1, type: 'image', success(res) { // tempFilePath可以作为img标签的src属性显示图片 const t 阅读全文
posted @ 2021-12-21 15:42 还有什么值得拥有 阅读(29) 评论(0) 推荐(0) 编辑
摘要: app.js // app.js const interfaces = require("./utils/urlconfig") App({ onLaunch() { // 展示本地存储能力 const logs = wx.getStorageSync('logs') || []; logs.uns 阅读全文
posted @ 2021-12-10 16:36 还有什么值得拥有 阅读(53) 评论(0) 推荐(0) 编辑
摘要: wx.ml <view class="con"> <textarea name="" id="" class="inputText" cols="30" rows="10" value="{{inputText}}" placeholder="(选填)留下您的评语吧~" bindinput="get 阅读全文
posted @ 2021-12-08 10:20 还有什么值得拥有 阅读(192) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Layui</title> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" c 阅读全文
posted @ 2021-11-29 09:49 还有什么值得拥有 阅读(224) 评论(0) 推荐(0) 编辑
摘要: wxml <!-- pages/vip/index.wxml --> <view class="con_box"> <view style="height:{{navHeight+'rpx'}};" class="window_top"> <view class="w_text" style="ma 阅读全文
posted @ 2021-11-16 15:51 还有什么值得拥有 阅读(491) 评论(0) 推荐(0) 编辑
摘要: function scalScreen() { let docEl = document.documentElement; let scale = $(window).width() / 1920; let _width, _height; window.clientWidth = docEl.cl 阅读全文
posted @ 2021-11-15 14:53 还有什么值得拥有 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 下载好cli 创建项目 vue create hello-world 借助style-resources-loader安装sass vue add style-resources-loader 下载以下版本的sass 安装包 下载vue-loader "node-sass": "^6.0.1", " 阅读全文
posted @ 2021-10-29 17:06 还有什么值得拥有 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 定义类 class 类名 { 属性名: 类型; constructor(参数: 类型){ this.属性名 = 参数; } 方法名(){ .... } } View Code 示例:可以使用constructor定义一个构造器方法(在TS中只能有一个构造器方法!) class C{ name: st 阅读全文
posted @ 2021-10-28 11:18 还有什么值得拥有 阅读(32) 评论(0) 推荐(0) 编辑
摘要: tsconfig.json 基础配置文件 { /* include:用来指定哪些ts文件需要被编译 路径:**表示任意目录 *表示任意文件 exclude:不需要被编译的文件目录 默认值:["node"] */ "include": ["./src/*"], // "exclude": ["./no 阅读全文
posted @ 2021-10-26 00:51 还有什么值得拥有 阅读(28) 评论(0) 推荐(0) 编辑
摘要: windows 安装 npm install -g typescript macos安装 brew install typescript 项目安装TS 除了全局安装外,也可以在项目中独立安装 typescript,这可以限定项目使用的 typescript 版本 yarn init -y 安装 ty 阅读全文
posted @ 2021-10-25 01:18 还有什么值得拥有 阅读(65) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页