随笔分类 - 前端
摘要:html如下,新建一个 txt, 复制进去,改名为html 即可 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <input id="a" /><b
阅读全文
摘要:1.页面 <view> <!-- <view class="top_tip">开始开发舒尔特训练</view> --> <view>{{msg}}</view> <view style="margin-top: 10rpx;font-size: 80rpx;">{{useTime}} 秒</view
阅读全文
摘要:小程序的屏幕宽固定为 750rpx (即750个物理像素) 让小程序内容在同一行 <view class="line"> <view wx:for="{{item}}" > <button class="abc" style="width: 125rpx;" size="mini" type="pr
阅读全文
摘要:什么是yarn? 简单地说yarn 相当于springboot 项目中的maven,会自动管理包的依赖。 1.安装 npm install -g yarn 2. 配置 yarn config set registry https://registry.npm.taobao.org 3. 使用 # 在
阅读全文
摘要:查看代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale
阅读全文
摘要:利用console格式化字符串 # 在console 输入 a = {"a":"a","b":56363,"c":"6666"}; copy(a); 此时你的粘贴板已经有格式化后的字符串了,直接crtl + v 即可粘贴;
阅读全文
摘要:代码 this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { $.ajax({ url:base_url+
阅读全文
摘要:间距操作 // 外边距示例 <el-input v-model="input" placeholder="请输入内容" style="margin-top: 20px;margin-left: 60px; width:200px;"></el-input> // 外边距 margin-top:100
阅读全文
摘要:模板 查看代码 <template> <div class="hello"> <h1>{{ msg }}</h1> <h2>Essential Links</h2> <el-row> <el-button>默认按钮</el-button> <el-button type="primary" @cli
阅读全文
摘要:VUE 官网: https://cn.vuejs.org/index.html element-ui 官网: https://element.eleme.cn/#/zh-CN/component/installation 1、在文件里执行CMD命令 // 安装vue-cli npm install
阅读全文
摘要:elemetn-ui 官网: https://element.eleme.cn/#/zh-CN/component/installation html代码 查看代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <met
阅读全文