会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
木早长泉
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
下一页
2019年3月4日
css 清楚浮动的几种方式
摘要: 方法一: 使用clear属性的空元素 <div style="clear:both;"></div> 方法二:使用overflow属性 给浮动的元素容器添加overflow:hidden/auto; 在添加overflow属性后,浮动元素又回到了容器层,把容器层撑起来,达到清理浮动的效果 另外在 I
阅读全文
posted @ 2019-03-04 13:16 牛牛牛牛牛牛牛牛
阅读(803)
评论(0)
推荐(0)
2019年1月11日
npm -g -D -s的区别
摘要: npm install module-name 全局安装 npm install module-name -D 即 npm install module-name -save-dev 保存到devDependencies npm Install module-name -S 即 npm instal
阅读全文
posted @ 2019-01-11 18:15 牛牛牛牛牛牛牛牛
阅读(1647)
评论(0)
推荐(0)
electron-vue初始桌面应用
摘要: 1.安装vue-cli脚手架 npm install -g vue-cli 2.创建项目:vue init simulatedgreg/electron-vue my-project 3.安装依赖 :npm install 4.运行项目:npm run dev 官网地址:https://simula
阅读全文
posted @ 2019-01-11 10:36 牛牛牛牛牛牛牛牛
阅读(283)
评论(0)
推荐(0)
2019年1月7日
vue 关闭浏览器
摘要: 在开发中的一个需求,vue中关闭浏览器, 直接使用window.close()在chrome、fireFox会不起作用 需要改为一下方式 window.open('about:blank','_self').close() 上面这种方式会把你的当前页面改为 或者使用 window.open('','
阅读全文
posted @ 2019-01-07 10:35 牛牛牛牛牛牛牛牛
阅读(9073)
评论(1)
推荐(0)
2018年12月24日
vue bus的使用
摘要: vue中的bus事件,一般作为中央事件总线来使用 简单例子:比如在A,B组件为兄弟组件,现在A要调用B的中C事件 1.创建一个bus.js 内容: import Vue from 'vue' const Bus = new Vue() export { Bus } 2.在A,B组件中引入bus.js
阅读全文
posted @ 2018-12-24 10:44 牛牛牛牛牛牛牛牛
阅读(5676)
评论(0)
推荐(0)
2018年12月12日
react 调用webIm
摘要: 记录下遇到的问题,之前引用腾讯云的webim,一直出错,现在改好了, 引用了, 以上是在public下的index.html引用, 但是在子模块console.log(webim);会报这个错 解决也很简单,使用window.webim就可以了
阅读全文
posted @ 2018-12-12 10:16 牛牛牛牛牛牛牛牛
阅读(491)
评论(0)
推荐(0)
2018年12月6日
css样式问题解决
摘要: 1.关于滚动条 (1)布局后由于写了 overflow-y: scroll; 在内容还没有超出就出现了滚动条。 我的解决方法是直接去掉了滚动条: .class::-webkit-scrollbar { width: 0px; } 但这样写,当内容多的时候也没有了滚动条,暂没有找到好的方法 .clas
阅读全文
posted @ 2018-12-06 15:04 牛牛牛牛牛牛牛牛
阅读(146)
评论(0)
推荐(0)
2018年12月3日
学习animejs
摘要: 1.安装方式 (1)npm install animejs 2.引入 import anime from 'animejs' 3.使用 (anime({
阅读全文
posted @ 2018-12-03 17:12 牛牛牛牛牛牛牛牛
阅读(2639)
评论(0)
推荐(0)
2018年11月6日
vue,在模块中动态添加dom节点,并监听
摘要: 在这里,onclick事件没有作用,因为它指向的是window,如果写为this.click页面显示为undefined, 我采用的是通过class绑定事件,但是会有一个问题,那就是当你渲染多个事件时,通过class绑定的事件会多次触发, 如下 $('.wrap').on("click",'.btn
阅读全文
posted @ 2018-11-06 13:40 牛牛牛牛牛牛牛牛
阅读(17062)
评论(1)
推荐(0)
2018年10月31日
vue 关于solt得用法
摘要: solt 第一种用法 父组件 <templateSolt></templateSolt> <templateSolt> <p>slot分发了内容</p> </templateSolt> 子组件 <div> <h1>这是slot子组件</h1> <slot> 如果slot没有分发内容。 </slot>
阅读全文
posted @ 2018-10-31 14:58 牛牛牛牛牛牛牛牛
阅读(5791)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
下一页
公告