摘要: 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 百年美 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 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 百年美 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 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 百年美 阅读(3999) 评论(2) 推荐(0) 编辑
摘要: 多行垂直居中 :display:table,不管文字是一行或者是多行,都可以垂直居中 水平垂直居中几种方式: 阅读全文
posted @ 2017-02-21 21:30 百年美 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 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 百年美 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: 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 百年美 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.标签 阅读全文
posted @ 2017-01-06 18:20 百年美 阅读(33474) 评论(0) 推荐(1) 编辑
摘要: 英文:(Introduction)中文:https://github.com/vuejs/vuex/issues/176(贡献者努力中) 阅读全文
posted @ 2016-12-30 16:06 百年美 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.判断是否来自微信浏览器 2.判断手机的类型 阅读全文
posted @ 2016-11-29 19:39 百年美 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1.如果使用jquery绑定touch事件的话,获取touchstart,touchmove的触点坐标用 e.originalEvent.targetTouches[0].pageX, 获取touchend则用 e.originalEvent.changedTouches[0].pageX 2.有些 阅读全文
posted @ 2016-11-29 19:02 百年美 阅读(271) 评论(0) 推荐(0) 编辑