上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 1.监听事件 v-on:click="msg+=1" (msg是写在data里) 2.方法事件处理器 v-on:click = "jia" (jia是写在methods) 3.内联处理器方法 v-on:click="jia('at')" (jia是写在methods,jia函数带参数) 4.事件修饰 阅读全文
posted @ 2018-05-16 17:53 anne_zhou 阅读(2685) 评论(0) 推荐(0) 编辑
摘要: 一. 获取光标位置: 二. 设置光标位置: 三. 获取选中文字: 四. 选中特定范围的文本: 五. 在光标后插入文本: 阅读全文
posted @ 2018-05-15 10:23 anne_zhou 阅读(4960) 评论(1) 推荐(1) 编辑
摘要: 由于小程序上传代码不能查过2M,所以处理方法如下: 1.确定小程序代码包加入本地图片不超过2M,才能引用本地图片; 2.有很多图标的话,可以考虑用iconfont字体图标,由于小程序不支持http,请求跨域,所以到这个平台https://transfonter.org/,把字体文件转化成base64 阅读全文
posted @ 2018-05-02 11:31 anne_zhou 阅读(2141) 评论(0) 推荐(0) 编辑
摘要: 1. vue.config.silent = true 取消 Vue 所有的日志与警告。 2.vue.config.productionTip= false 设置为 false 以阻止 vue 在启动时生成生产提示 阅读全文
posted @ 2018-04-25 19:12 anne_zhou 阅读(131) 评论(0) 推荐(0) 编辑
摘要: handlerMultiEnter(e) { let code = e.keyCode; let ctrl = e.ctrlKey; let shift = e.shiftKey; let alt = e.altKey; if(code == '10' && ctrl && !shift && !alt) { ... 阅读全文
posted @ 2018-04-24 10:26 anne_zhou 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: 需要启个服务 需引入jquery.js和template.js json数据格式 阅读全文
posted @ 2018-04-19 11:57 anne_zhou 阅读(502) 评论(0) 推荐(0) 编辑
摘要: //用 class 获取元素 function getElementsByClass(className,context) { context = context || document; if(document.getElementsByClassName) { return context.getElementsByClassName(className); ... 阅读全文
posted @ 2018-04-19 11:51 anne_zhou 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://github.com/axios/axios/issues/164#issuecomment-327837467 阅读全文
posted @ 2018-04-18 18:35 anne_zhou 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: data() { return{ AdminToken: this.getCookie('token'), } }, data() { return{ AdminToken: this.getCookie('token'), } }, updated() { //刷新当前页面的时候重新调用新的coo 阅读全文
posted @ 2018-04-15 13:29 anne_zhou 阅读(854) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name= 阅读全文
posted @ 2018-04-10 16:45 anne_zhou 阅读(411) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页