原创 js 合併數組的方法

數組案例: var a = [1,2,3,4]; var b = [5,6,7,8]; 1,concat      js的Array對象提供了一個叫concat()方法,連接兩個或更多的數組,並返回結果。       var c

原创 react➕antd【樹形列表,右鍵出現菜單】

 1,列表上右鍵事件  treeNodeonRightClick,代碼中有 2,自定義右鍵菜單內容 getNodeTreeRightClickMenu,代碼中有 3,return下面寫入右鍵菜單內容 {this.getNodeTreeRi

原创 a標籤調整打開新頁面

加入 target="_blank"   案例:<a href="dynamicDetails.html" target="_blank" ></a>

原创 uni-app根據鏈接生成二維碼

效果圖如下  下載插件 (tki-qrcode) 安裝插件 npm i tki-qrcode   代碼如下 <template> <view class="centent"> <view class="user">

原创 Method address has already been defined as a data property.

報錯: Method "address" has already been defined as a data property. found in 解決辦法: 改個方法名。

原创 瀏覽器https ,接口http報錯問題

報錯: index.umd.min.js?1c31:1 Mixed Content: The page at 'https://localhost:8081/h5/#/' was loaded over HTTPS, but reques

原创 CSS 實現必填項前的紅*

效果圖:   html <view class="login-input login-margin-b"> <view class="input-title redDot"></span>暱稱:</view> <input

原创 vue如何獲取數組中數組並重組數組

獲取數組中數組 this.permissionList = res.data.payload.auth; // 顯示問題 var list=[]; var

原创 vue2.0 返回上一頁

返回 <span @click="$router.back(-1)"><el-button type="primary">返回</el-button></span>  

原创 vue+elementui實現圖片預覽,放大圖片

背景:後臺系統用到圖片預覽功能。  頁面<template> <div> <span @click="clickImg(index)" v-for="(item,index) in extend" :key="

原创 Html頁面ajax接口請求

背景:頁面請求後臺接口 <script> $(function () { $.ajax({ type: "get", url: "xxx/versio

原创 js 三張圖片隨機替換和隔五分鐘替換圖片

 背景:隨機替換圖片 <script src="js/jquery-3.4.1.min.js"></script> <script> var imgs=['./image/b01.jpg','./image/b02.jp

原创 git中下拉代碼遇到 fatal: Authentication failed

重置密碼:阿里雲code的git上傳和下載代碼的找回密碼辦法 https://code.aliyun.com/profile/password/edit  git下拉代碼問題 git上clone項目輸錯了一次賬戶和密碼 。下拉不了

原创 null 和 undefined 的區別

在JavaScript中,null 和 undefined 幾乎相等 console.log(null==undefined); //true 因爲兩者都默認轉換成了false console.log(typeof unde

原创 windows怎麼訪問linux的samba共享目錄

1.win10系統運行secpol.msc 打開本地安全策略。   2.安全策略->本地策略->安全選項。   3.右側找到“網絡安全:LAN管理器身份驗證級別”打開,選擇“僅發送NTLMv2響應,拒絕LM和NTLM”點確定。   4.運