原创 node鏈接mysql數據報 unblock with mysqladmin
啓動node服務端端 throw err; // Rethrow non-MySQL errors ^ Error: ER_HOST_IS_BLOCKED: Host '188.131.xx.xx' is blocked
原创 vue 動態新增屬性
給已渲染完的json 數組對象通過索引添加 屬性 tabBars: [ { text: "待付款", id: "payment", selectedWidth: 0 } } tabBars[0].goodsItem = []; 解決方
原创 nvue(weex)中使用字體圖標
1、在nvue頁面的created生命週期中做如下設置 created() { let domModule = weex.requireModule('dom'); domModu
原创 this安全策略
1、把this作爲參數值來調用函數,這樣可以避免this多問題,因爲this始終與當前對象保持一致。 2、設計靜態的this指針 如: function A(){ let _this = this ; 存儲當前的this, } 3、設計
原创 No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android
問題: No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android 解決方案 1、進入社區 http://too
原创 html 中 圖片拼接 空隙問題
給圖片標籤的父級設置 font-size: 0; <div class="activity-img" v-for="(item,index) in commodityDetails" :key="index"> <
原创 -webkit-text-stroke 小米系列不兼容
-webkit-text-stroke 小米系列不兼容 解決方案:目前還在探索中,暫時用 text-shadow 替代
原创 基於node koa mysql 實現數據接口
基於node+koa+mysql 實現數據接口: github 地址:https://github.com/mazhaoyou/nodeKoaApi.git 使用說明: 1、把項目中shops.sql導入自己數據庫 2、修改項目中數據庫配
原创 Android 應用市場 空包寫入簽名
簽名方法: jarsigner -verbose -keystore android.keystore -signedjar baidu2.apk baidu.apk android.keystore
原创 axios的post請求會發送了2次請求,解決方案
1、引用qs模塊 2、在main.js中設置默認請求頭 axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded' 3、需要在後臺進行設置,允許
原创 Runtime Only 版本 VS Runtime+Compiler 版本
當我們用vue-cli 初始化 Vue.js 項⽬的時候會詢問我們⽤ Runtime Only 版本的還是 Runtime+Compiler 版本,下面進行兩者對比: Runtime Only: Runtime Only
原创 html中長英文換行問題
1、當一個英文比較單詞比較長時,html中默認不自動換行 解決方案: max-width:100%; overflow-wrap:break-word; CSS 屬性 overflow-wrap 是用來說明當一個不能被分開的字符串太長
原创 客戶端(Android、ios)與 H5交互
1、首先Android、ios 內核不一樣,需要對Android和ios做不同的處理 a.判斷內核的方法: const browser = () => { let u = navigator.userAgent; return
原创 原生App中嵌套 H5, H5不能使用緩存問題
原生安卓 App中嵌套 H5, H5不能使用緩存報一下提示: Cannot read property 'getItem' of null 通過webView 設置開啓緩存 WebSettings settings = newWebVie
原创 vue 中 防止改變 源數據
源數據: const exhibitorList = [{ title: '展商名稱', selectText: '', isSelect: false }, { t