原创 html + js 上傳 圖片

vue 環境 <a href="javascript:;" class="upload right"> <input @change="fileImage" type="file" accept="image/jpeg,imag

原创 隨心所記:記一次微信小程序對接騰訊廣點通的虐心經歷

廣點通是啥?簡單說就是一個廣告的投放途徑 後臺要做統計,需要我這裏拿到他們的id 簡單說就是這樣的 小程序路徑 pages/index/index 根據他們提供的文檔,他們的系統會拼接一個參數      就像這樣 pages/index/

原创 pc 分享微博 qq空間等

//分享到新浪微博 function shareToSinaWB(event){ event.preventDefault(); var _shareUrl = 'http://v.t.sina.com.cn/s

原创 小米9 字體樣式問題

使用rem單位做了一個h5  其他手機裏看樣式都是正常的, 小米9裏面圖片字體都像是放大了兩倍,真個頁面崩了 這裏需要額外處理一下字體 備註:當然,這可能不是小米9的問題。貌似有些手機內嵌的h5也會有類似的問題,但誰讓其他測試機都沒事,就

原创 van-circle顯示錯誤 位置偏移

postcss-pxtorem 導致的問題。 我的是nuxt的框架,解決方式爲   van-circle 位置錯亂 在nuxt.config.js->postcss-pxtorem 的配置中添加 selectorBlackList: ['

原创 iframe 自適應高度

<iframe id="iframe" src="xxxx.html" scrolling="no" width="100%"></iframe> function reinitIframe(iframId) {             

原创 vant 組件導致 mounted 執行了兩個

新用 v-if 隱藏,再放出來 <div class="header" v-if="isShowHeader"> <van-search placeholder="請輸入搜索關鍵詞" v-model="value" /> </d

原创 winRAR 離購買許可只剩xx天

在WinRAR的安裝目錄下,新建文件RarReg.key(C:\Program Files\WinRAR\RarReg.key) 粘貼以下內容即可: RAR registration data Federal Agency for Edu

原创 vant 大量console warn There are multiple modules with names that only differ in casing

There are multiple modules with names that only differ in casing.                                                      

原创 nuxt 引入 flexible.js

關於 flexible.js 資源請自行下載.  http://g.tbcdn.cn/mtb/lib-flexible/0.3.2/??flexible_css.js,flexible.js 這裏 ssr 我設置了false,因爲報錯提示

原创 elementUI el-icon 本地化離線使用

版本  2.10.0 首先下載需要的資源  (js ,  css,  ttf,  woff)      https://element.eleme.cn/2.10/#/zh-CN/component/installation 完事以後引入

原创 nuxt + vant + postcss-px2rem rem適配

原文鏈接:https://www.cnblogs.com/chunshan-blog/p/9950474.html   一、創建項目 1、使用如下命令生成項目 vue init nuxt-community/starter-templa

原创 postcss-px2rem vantjs 樣式大小顯示問題

當postcss-px2rem 的 rootValue  設置爲  75 或者 37.5 的時候, 會發現整個都顯得特別小 解決辦法,postcss.config.js 中如下配置 const AutoPrefixer = requir

原创 純css 實現瀑布流效果

原理是 css 的 column 屬性,話不多說直接上代碼 <html> <head> <link rel="stylesheet" type="text/css" href="css/main.css"> <script s

原创 新版 nuxt 使用 postcss

首先安裝一波 npm install --save-dev postcss-nested postcss-responsive-type postcss-hexrgba 然後在  nuxt.config.js  裏面的  build 中