上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 39 下一页
摘要: <html><body> <script type="text/javascript"> var str="0123456789!" document.write(str.substring(3,7)) //输出 3456 </script> </body></html> 阅读全文
posted @ 2019-10-31 10:50 武卡卡 阅读(3064) 评论(0) 推荐(1) 编辑
摘要: 1,父组件 App.vue 传值: <template> <div id="app"> <Todos :todos="todos"/> <!-- 父组件传递到子组件 --> </div> </template> <script> import Todos from './components/Tod 阅读全文
posted @ 2019-10-30 21:14 武卡卡 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1,cnpm i express -g 2, cnpm i express-generater -g 3, express - e 项目名 阅读全文
posted @ 2019-10-29 14:01 武卡卡 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 1,博客表结构 Blog.js var mongoose = require('mongoose') mongoose.connect('mongodb://localhost/test',{ useUnifiedTopology: true , useNewUrlParser: true}); v 阅读全文
posted @ 2019-10-28 13:58 武卡卡 阅读(393) 评论(0) 推荐(1) 编辑
摘要: flex-direction定义伸缩项目放置在伸缩容器的排列方向,对应有四个值: (1)row:从左到右或从右到左 (2)row-reverse:与row属性相反 (3)column:从上到下排列 (4)column-reverse:从上到下排列,内容与column相反 阅读全文
posted @ 2019-10-23 09:49 武卡卡 阅读(1839) 评论(0) 推荐(2) 编辑
摘要: 一,单行 white-space:nowrap; overflow:hidden;text-overflow: ellipsis; 二,多行 display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orie 阅读全文
posted @ 2019-10-23 08:53 武卡卡 阅读(592) 评论(0) 推荐(0) 编辑
摘要: Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错。我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因,比较短小但却功能强大。我将我了解到的命令列举一下,仅供大家参考: 系统信息 arch 显示机器的处理器架构 阅读全文
posted @ 2019-10-17 20:44 武卡卡 阅读(151) 评论(0) 推荐(0) 编辑
摘要: var date = new Date(); var date = new Date(); var date = new Date(); var date = new Date(); date .getYear(); //获取当前年份(2位) date .getFullYear(); //获取完整的 阅读全文
posted @ 2019-10-14 08:57 武卡卡 阅读(15635) 评论(0) 推荐(7) 编辑
摘要: import Card from './components/Card.vue' Vue.component('m-card',Card) // component是注册全局组件,在实例化VUE前调用,注册后可以全局使用 。 components是局部注册组件,注册后只能在当页调用。 import  阅读全文
posted @ 2019-10-13 22:09 武卡卡 阅读(109) 评论(0) 推荐(0) 编辑
摘要: div{ display:flex; alian-items:center; //使垂直对齐 justify-content:center //使水平对齐 } 阅读全文
posted @ 2019-10-12 23:28 武卡卡 阅读(1802) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 39 下一页