随笔分类 -  Vue

Vue基本操作
摘要:一、搭建项目1. vue init nuxt-community/starter-template testPro --testPro为项目名称-项目文件夹名称2. Project name (testPro) test-pro --输入项目名称(不能有大写字母)3. Project descrip 阅读全文
posted @ 2021-03-09 12:02 大洋彼岸。 阅读(289) 评论(0) 推荐(0)
摘要://获取URL参数 getUrlKey(name) { return ( decodeURIComponent( (new RegExp("[?|&]" + name + "=" + "([^&;]+?)(&|#|;|$)").exec( window.location.href ) || [, " 阅读全文
posted @ 2021-03-04 11:32 大洋彼岸。 阅读(821) 评论(0) 推荐(0)
摘要:这个问题是因为ios系统会默认你的input字体大小不得小于16px,要是小于16px系统就会给你放大页面 这个问题只需要把你的input输入框的字体大小改成16px style="font-size: 16px !important;" 阅读全文
posted @ 2020-05-11 10:27 大洋彼岸。 阅读(496) 评论(0) 推荐(0)
摘要:html <label> <input type="file" @change="tirggerFile($event)" /> </label> script methods: { tirggerFile: function(event) { var self = this; var file = 阅读全文
posted @ 2020-05-11 10:23 大洋彼岸。 阅读(1006) 评论(0) 推荐(0)
摘要:getUrlKey(name) { return ( decodeURIComponent( (new RegExp("[?|&]" + name + "=" + "([^&;]+?)(&|#|;|$)").exec( location.href ) || [, ""])[1].replace(/\ 阅读全文
posted @ 2020-05-11 10:11 大洋彼岸。 阅读(1229) 评论(0) 推荐(0)
摘要:注:主要是el-main的高度和绝对定位必须设置(样式在下面) html <el-main id="message" v-html="remsg" class="scrolldivmain">some code</el-main> js updated() { this.scrollToBottom 阅读全文
posted @ 2020-05-11 10:07 大洋彼岸。 阅读(501) 评论(0) 推荐(0)