11 2020 档案

摘要:html {{title | getTitle(title)}} filters filters: { // 判断标题的类型 getTitle(title) { if (title == 'add') { var title = "新增" return title; } else { var tit 阅读全文
posted @ 2020-11-27 15:44 JaneLifeVlog 阅读(88) 评论(0) 推荐(0)
摘要:单个数据 computed: { sum: function () { return parseFloat(this.count * this.price).toFixed(2); }, }, 数组数据 computed:{ total:function(){ let total = 0; this 阅读全文
posted @ 2020-11-27 15:43 JaneLifeVlog 阅读(87) 评论(0) 推荐(0)
摘要:html <van-dropdown-item :title="time_value" v-model="time" :options="time_option" @change="changeTime"> </van-dropdown-item> data数据 time: '', time_val 阅读全文
posted @ 2020-11-25 10:38 JaneLifeVlog 阅读(3242) 评论(1) 推荐(0)
摘要:**html ** <!-- 回到顶部 --> <div class="go_top" @click="goTop" :class="go_top_flag == true ? 'go_top_show' :''"> <van-icon name="back-top" class="go_top_i 阅读全文
posted @ 2020-11-25 10:36 JaneLifeVlog 阅读(150) 评论(0) 推荐(0)
摘要:html <p>{{count_time}}</p> data数据 count_time: '', //格式化之后的当前时间 函数 created() { this.getTimes() }, beforeDestroy() { if (this.count_time) { clearInterva 阅读全文
posted @ 2020-11-25 10:34 JaneLifeVlog 阅读(152) 评论(0) 推荐(0)
摘要:html <p>点击日期查看详情</p> <van-calendar safe-area-inset-bottom :poppable="false" :show-confirm="false" :title="date" :show-subtitle="false" :default-date=" 阅读全文
posted @ 2020-11-25 10:32 JaneLifeVlog 阅读(1118) 评论(0) 推荐(0)
摘要:html <van-tabs @click="onClick" v-model="active"> <van-tab v-for="(tabItem,index) in tabTitle" :title="tabItem.title"> <div v-if="tabItem.value 0 || t 阅读全文
posted @ 2020-11-25 10:29 JaneLifeVlog 阅读(883) 评论(0) 推荐(0)
摘要:函数 sum() {//合计 this.thisPeoData.forEach((value, index) => { value.child.forEach((val, idx) => { val.fine.forEach((v, i) => { if (v.type '早餐') { this.b 阅读全文
posted @ 2020-11-25 10:22 JaneLifeVlog 阅读(184) 评论(0) 推荐(0)
摘要:html <el-button size="medium" @click="handleHide">批量隐藏</el-button> <el-button size="medium" @click="handleShow">批量显示</el-button> <el-button size="medi 阅读全文
posted @ 2020-11-25 10:19 JaneLifeVlog 阅读(1221) 评论(0) 推荐(0)
摘要:html {{price | priceFormat}} 函数 filters: { //格式化价格 priceFormat(val) { var str = (val / 100).toFixed(2) + ''; var intSum = str.substring(0, str.indexOf 阅读全文
posted @ 2020-11-25 10:14 JaneLifeVlog 阅读(77) 评论(0) 推荐(0)
摘要:html <span>添加</span> <el-input type='number' v-model="order_rowNum" placeholder="请输入行数"></el-input> <span>行明细</span> <el-button type="primary" min="1" 阅读全文
posted @ 2020-11-25 10:12 JaneLifeVlog 阅读(1706) 评论(1) 推荐(0)
摘要:HTML规范 1.给 a 标签加上title属性 2.a 标签的href属性必须写上链接地址,暂无的加上 javascript:; 3.非本专题的页面间跳转,采用打开新窗口模式:target="_blank" 属性值 1.元素属性值使用双引号语法 <input type="radio" name=" 阅读全文
posted @ 2020-11-25 09:51 JaneLifeVlog 阅读(253) 评论(0) 推荐(0)
摘要:全局使用 <p class="test_aa">全局使用的文字</p> css::root{--red_color:red;} .test_aa{color:var(--red_color)} 局部使用 <p class="test_bb">局部使用的文字</p> css:.test_bb{--re 阅读全文
posted @ 2020-11-12 15:00 JaneLifeVlog 阅读(64) 评论(0) 推荐(0)
摘要:JavaScript 算法与数据结构 https://github.com/trekhleb/javascript-algorithms/blob/master/README.zh-CN.md 数据结构和算法必知必会的50个代码实现 https://github.com/wangzheng0822/ 阅读全文
posted @ 2020-11-12 11:07 JaneLifeVlog 阅读(90) 评论(0) 推荐(0)
摘要:腾讯标准文档 https://tgideas.qq.com/doc/index.html 京东文档 https://guide.aotu.io/index.html 阿里巴巴文档 https://github.com/airbnb/javascript 百度文档 https://github.com 阅读全文
posted @ 2020-11-12 10:40 JaneLifeVlog 阅读(114) 评论(0) 推荐(0)
摘要:<div id="flash"> <a href="javascript:void(0)" id="prev"><img src="../images/left_icon.png" alt=""></a> <a href="javascript:void(0)" id="next"><img src 阅读全文
posted @ 2020-11-10 17:06 JaneLifeVlog 阅读(46) 评论(0) 推荐(0)
摘要:Object.assign() 用法一:合并多个对象 const obj1 = {aa:1} const obj2 = {bb:2} const obj3 = {cc:3} const obj = Object.assign(obj1, obj2, obj3) // {a:1, b:2, c:3} 阅读全文
posted @ 2020-11-05 17:50 JaneLifeVlog 阅读(68) 评论(0) 推荐(0)
摘要:1px边框的问题 伪类 + transform:基于media查询判断不同的设备像素比对线条进行缩放 .border_1px:before{ content: ''; position: absolute; top: 0; height: 1px; width: 100%; background-c 阅读全文
posted @ 2020-11-05 16:00 JaneLifeVlog 阅读(87) 评论(0) 推荐(0)
摘要:使用&&/|| if(conected){ login(); } //上述可以简写为:conected && login(); if(a为真){ a=a }else{ a=b } //上述可以简写为:a = a || b 使用三元表达式 if(a==b){ a=c }else{ a=d } 可写成: 阅读全文
posted @ 2020-11-04 09:12 JaneLifeVlog 阅读(358) 评论(0) 推荐(0)
摘要:$(document).ready(function(){ $(".header").load("header.html"); $(".nav-left").load("nav.html",function(){ var links = $(".nav-left li a"), index = 0, 阅读全文
posted @ 2020-11-02 18:00 JaneLifeVlog 阅读(364) 评论(0) 推荐(0)
摘要:<table border="1"> <thead> <tr class="tr-background"> <td class="border-left">题目1</td> <td>题目2</td> <td>题目3</td> <td>题目4</td> <td>题目5</td> <td>题目6</td 阅读全文
posted @ 2020-11-02 15:33 JaneLifeVlog 阅读(115) 评论(0) 推荐(0)
摘要:html结构 左侧用户名单 <div class="layui-tab-item layui-show"> <ul class="userp-user-list" id="myTable"> <li><div><a href="javascript:void(0)">用户1</a></div></l 阅读全文
posted @ 2020-11-02 15:30 JaneLifeVlog 阅读(318) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>用户信息页</title> <link rel="stylesheet" 阅读全文
posted @ 2020-11-02 15:26 JaneLifeVlog 阅读(1114) 评论(0) 推荐(0)
摘要:<style> .lists {display: flex;justify-content: center;} .box {width: 100px;height: 100px;transition: all 0.3s;} .box ~ .box {margin-left: 15px;} .box 阅读全文
posted @ 2020-11-02 15:24 JaneLifeVlog 阅读(46) 评论(0) 推荐(0)
摘要:(1)mouted mounted() { // 事件监听滚动条 window.addEventListener('scroll', this.watchScroll) }, (2)methods methods: { 回到顶部 goTop() { document.body.scrollTop = 阅读全文
posted @ 2020-11-02 15:20 JaneLifeVlog 阅读(141) 评论(0) 推荐(0)
摘要:(1)html元素 <span class="f14">{{date_choose}}</span> <van-calendar v-model="date_choose_show" :min- date="minDate" @confirm="date_Confirm"></van-calenda 阅读全文
posted @ 2020-11-02 15:18 JaneLifeVlog 阅读(2484) 评论(0) 推荐(0)
摘要:(1)html元素 <van-row :gutter="10" > <van-col span="12"> <input type="text" v-model="info_form.breakfast.start_value" @click="info_form.breakfast.start_t 阅读全文
posted @ 2020-11-02 15:15 JaneLifeVlog 阅读(1499) 评论(0) 推荐(0)
摘要:meta用法 实例: <!-- 声明编码格式 --> <meta charset="utf-8"> <!-- 自适应手机屏幕适配:页面宽度为设备屏幕宽度width=device-width、用户是否可以调整缩放比例user-scalable=no 初始的缩放比例initial-scale=1.0、最 阅读全文
posted @ 2020-11-02 15:03 JaneLifeVlog
摘要:body, div, ul, li, ol, h1, h2, h3, h4, h5, h6, input, textarea, select, p, dl, dt, dd, a, img, button, form, table, th, tr, td, tbody, article, aside, 阅读全文
posted @ 2020-11-02 15:01 JaneLifeVlog 阅读(306) 评论(0) 推荐(0)