会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
百年美
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2017年3月15日
cors跨域的前端实现---根据资料整合的
摘要: 1.服务端 搁response中增加Access-Control-Allow-Origin:‘*’ eg: context.Response.AddHeader("Access-Control-Allow-Origin", "*"); 2.前端 同样发送ajax请求 $.ajax({ type:'m
阅读全文
posted @ 2017-03-15 17:48 百年美
阅读(227)
评论(0)
推荐(0)
2017年3月2日
css sticky footer布局
摘要: html: <div class="wrap"> <div class="content"> ............ </div> </div> <div class="footer"></div> css: html,body{height:100%;} .wrap{min-height: 10
阅读全文
posted @ 2017-03-02 11:04 百年美
阅读(134)
评论(0)
推荐(0)
2017年2月24日
vue2.0 transition用法
摘要: html: <div id="demo"> <button v-on:click="show = !show"> Toggle </button> <transition name="fade"> <p v-if="show">hello</p> </transition> </div> data:
阅读全文
posted @ 2017-02-24 15:54 百年美
阅读(4021)
评论(2)
推荐(0)
2017年2月21日
水平垂直居中
摘要: 多行垂直居中 :display:table,不管文字是一行或者是多行,都可以垂直居中 水平垂直居中几种方式:
阅读全文
posted @ 2017-02-21 21:30 百年美
阅读(160)
评论(0)
推荐(0)
经典的横线中间文字css布局---flex布局
摘要: html: <div class="title"> <div class="line"></div> <div class="text">ddd</div> <div class="line"></div> </div> css: .title{width:80%;display:flex;marg
阅读全文
posted @ 2017-02-21 13:26 百年美
阅读(1765)
评论(0)
推荐(0)
2017年1月19日
vue2细节变化的用法
摘要: 1.v-el和v-ref合并为一个属性:ref 原来:v-el:my-element 现在: ref="myElement", v-ref:my-component 变成了这样: ref="myComponent"。绑定在一般元素上时,ref 指DOM元素,绑定在组件上时,ref 为一组件实例。 访
阅读全文
posted @ 2017-01-19 15:41 百年美
阅读(323)
评论(0)
推荐(0)
2017年1月6日
vue-router2.0 组件之间传参及获取动态参数
摘要: 1.标签
阅读全文
posted @ 2017-01-06 18:20 百年美
阅读(33538)
评论(0)
推荐(1)
2016年12月30日
vuex
摘要: 英文:(Introduction)中文:https://github.com/vuejs/vuex/issues/176(贡献者努力中)
阅读全文
posted @ 2016-12-30 16:06 百年美
阅读(160)
评论(0)
推荐(0)
2016年11月29日
移动端微信部分知识总结
摘要: 1.判断是否来自微信浏览器 2.判断手机的类型
阅读全文
posted @ 2016-11-29 19:39 百年美
阅读(251)
评论(0)
推荐(0)
移动端js知识总结
摘要: 1.如果使用jquery绑定touch事件的话,获取touchstart,touchmove的触点坐标用 e.originalEvent.targetTouches[0].pageX, 获取touchend则用 e.originalEvent.changedTouches[0].pageX 2.有些
阅读全文
posted @ 2016-11-29 19:02 百年美
阅读(283)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告