上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页

2020年7月19日

1dialog 表单最基本的封装

摘要: <!-- --> <template> <el-dialog :visible.sync="defaultConfigDialogAdd.dialogVisible" :width="defaultConfigDialogAdd.width" :center="defaultConfigDialog 阅读全文

posted @ 2020-07-19 17:10 章画 阅读(317) 评论(0) 推荐(0) 编辑

2020年7月18日

mongoose

摘要: 1.数据库链接模块 db/index.js 定义好只好往app.js里面引入 const mongoose = require('mongoose') const { DB_URL } = require('../params') module.exports = _ => new Promise( 阅读全文

posted @ 2020-07-18 21:41 章画 阅读(209) 评论(0) 推荐(0) 编辑

数组

摘要: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/ 阅读全文

posted @ 2020-07-18 16:44 章画 阅读(167) 评论(0) 推荐(0) 编辑

js map数据结构

摘要: Map 对象保存键值对,并且能够记住键的原始插入顺序。任何值(对象或者原始值) 都可以作为一个键或一个值。 map对象常用于保存键值对,它的键是任意数据类型,常用于建立数据的映射关系 和对象的区别:Object对象的key只能是字符串或者Symbol,map的key可是是任意数据类型;Map的key 阅读全文

posted @ 2020-07-18 10:52 章画 阅读(5746) 评论(0) 推荐(0) 编辑

2020年7月16日

vue mixin混入

摘要: 基本结构 export default { data() { return {} }, computed: { }, methods: { }, filters: { }, created() { }, mounted() { }, } 阅读全文

posted @ 2020-07-16 22:20 章画 阅读(133) 评论(0) 推荐(0) 编辑

express

摘要: 1.开放静态资源 url访问 2express-art-template https://aui.github.io/art-template/express/ 1. response.render()方法只有配置了模板引擎,才会生效 const express = require('express 阅读全文

posted @ 2020-07-16 15:20 章画 阅读(176) 评论(0) 推荐(0) 编辑

:before :after

摘要: .li { padding-left: 10px; // border: 1px solid #000; font-size: 14px; margin-bottom: 0.2rem; overflow: hidden; white-space: nowrap; text-overflow: ell 阅读全文

posted @ 2020-07-16 11:29 章画 阅读(104) 评论(0) 推荐(0) 编辑

vue <compent> 结合is实现动态切换子组件

摘要: 这里就很自然的产生一个新问题:如何给相应的子组件传props? 解答:直接通过$attrs $listeners实现祖孙通信。 <!-- 传值通过$attrs $listeners 实现祖孙传值通信 --> <component :is="currentForm" @closeDialog="clo 阅读全文

posted @ 2020-07-16 10:13 章画 阅读(407) 评论(0) 推荐(0) 编辑

2020年7月15日

网址中的静态资源 public

摘要: 客户端浏览器收到的HTML响应内容中如果带有 link img script video audio 等带有src或者href标签时候,这些都是外部链接资源请求url.浏览器会默认自动性的对这些资源向后台服务器发送新的url请求.请求路径就是 src href 中写的路径。 其实也就是说src hr 阅读全文

posted @ 2020-07-15 15:30 章画 阅读(538) 评论(0) 推荐(0) 编辑

5 art-template

摘要: npm 在终端命令下执行装包,就会在该目录下产生一个node_modules包 art-template地址:https://aui.github.io/art-template/zh-cn/docs/ 安装 npm install art-template --save 1.单纯的在node环境某 阅读全文

posted @ 2020-07-15 10:39 章画 阅读(160) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页

导航