会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
武卡卡的个人博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
39
下一页
2019年10月31日
JS - 判断字符串某个下标的值
摘要: <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 武卡卡
阅读(3076)
评论(0)
推荐(1)
2019年10月30日
vue - 组件传值
摘要: 1,父组件 App.vue 传值: <template> <div id="app"> <Todos :todos="todos"/> <!-- 父组件传递到子组件 --> </div> </template> <script> import Todos from './components/Tod
阅读全文
posted @ 2019-10-30 21:14 武卡卡
阅读(108)
评论(0)
推荐(0)
2019年10月29日
express - 快速构建项目
摘要: 1,cnpm i express -g 2, cnpm i express-generater -g 3, express - e 项目名
阅读全文
posted @ 2019-10-29 14:01 武卡卡
阅读(430)
评论(0)
推荐(0)
2019年10月28日
mongodb - 关联字段
摘要: 1,博客表结构 Blog.js var mongoose = require('mongoose') mongoose.connect('mongodb://localhost/test',{ useUnifiedTopology: true , useNewUrlParser: true}); v
阅读全文
posted @ 2019-10-28 13:58 武卡卡
阅读(400)
评论(0)
推荐(1)
2019年10月23日
css - flex 定义排列方向
摘要: flex-direction定义伸缩项目放置在伸缩容器的排列方向,对应有四个值: (1)row:从左到右或从右到左 (2)row-reverse:与row属性相反 (3)column:从上到下排列 (4)column-reverse:从上到下排列,内容与column相反
阅读全文
posted @ 2019-10-23 09:49 武卡卡
阅读(1869)
评论(0)
推荐(2)
css 让多出的文字成省略号...
摘要: 一,单行 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 武卡卡
阅读(600)
评论(0)
推荐(0)
2019年10月17日
Linux常用命令大全(非常全!!!)
摘要: Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错。我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因,比较短小但却功能强大。我将我了解到的命令列举一下,仅供大家参考: 系统信息 arch 显示机器的处理器架构
阅读全文
posted @ 2019-10-17 20:44 武卡卡
阅读(157)
评论(0)
推荐(0)
2019年10月14日
js - 获取当前年月日
摘要: 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 武卡卡
阅读(15705)
评论(0)
推荐(7)
2019年10月13日
Vue - 定义使用组件
摘要: import Card from './components/Card.vue' Vue.component('m-card',Card) // component是注册全局组件,在实例化VUE前调用,注册后可以全局使用 。 components是局部注册组件,注册后只能在当页调用。 import
阅读全文
posted @ 2019-10-13 22:09 武卡卡
阅读(117)
评论(0)
推荐(0)
2019年10月12日
CSS - flex使行内元素快速对齐
摘要: div{ display:flex; alian-items:center; //使垂直对齐 justify-content:center //使水平对齐 }
阅读全文
posted @ 2019-10-12 23:28 武卡卡
阅读(1809)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
39
下一页
公告