原创 微信小程序頁面相互傳參/鏈接傳參/本地緩存/全局變量/反向傳值

A頁面 和 B頁面(a傳值給b) 基本的頁面目錄和配置 一、通過緩存傳遞參數  wx.setStorageSync a頁面(傳值的頁面) <!--pages/a/a.wxml--> <view bindtap="tiaozhuan">

原创 小程序列表頁分頁獲取數據,下滑加載更多

頁面代碼 <view class="fp_box"> <!--等待框--> <view class="load_style" hidden="{{!loading}}"> <image src="/img/common/load

原创 微信小程序 選項卡(數據雙層循環)

第一種:swiper選項卡,可點擊可滑動(swiper自帶了一個150的高度,高度不好控制) html <!-- 選項卡 --> <view class='topTabSwiper'> <!-- 從接口獲取數據寫法 index是小程序

原创 微信小程序——焦點圖 可預覽查看大圖縮放(多張可左右滑動) 帶頁碼

微信小程序焦點圖,可以滑動預覽大圖縮放 微信小程序自帶焦點圖swiper ,但是沒有頁碼,只有小圓點,所以要自己寫 html <!-- 焦點圖 --> <view class="page-section page-section-sp

原创 微信小程序——自定義分享與右上角分享

js onShareAppMessage: function (res) { //可以先看看頁面數據都有什麼,得到你想要的數據 var shareData = this.data console.log(shareData)

原创 ajax圖文列表加載數據加入懶加載與onerror

css部分 *{margin:0;padding:0;border:0;} ul{list-style:none;} .bOx{width:1200px;margin:20px auto;} .list li{line-height:3

原创 獲取地址欄參數的幾種辦法

<a style="display:block;margin:50px auto;text-align:center;" class="test" href="https://www.baidu.com?canshu">百度</a> 第

原创 echarts折線圖

html 頁面引用js <script type="text/javascript" src="assets/js/echarts.min.js"></script> css和html *{padding:0;margin:0;bo

原创 html5點擊喚醒app

h5頁面喚醒app,以淘寶爲例子 <a onclick="openApp()">點擊喚醒app</a> js <script> var download_schema = 'taobao://'; //app的協議有安卓同事提供,這

原创 頁面首次打開彈出提示,以後不再彈出

localStorage(本地存儲)和sessionStorage(會話存儲) 生命週期:localStorage:localStorage的生命週期是永久的,關閉頁面或瀏覽器之後localStorage中的數據也不會消失。localSt

原创 vue、 element 、upload上傳圖片 json-server 圖片轉base64

以列表頁點擊彈窗爲例 html <div class="meng" v-if="ok"> <div class="meng-box"> <div class="p-tit">相關信息</div>

原创 vue 與 json-server 跳轉頁面 修改 (五)

接上幾篇文章 https://blog.csdn.net/qq_39109182/article/details/85160889  https://blog.csdn.net/qq_39109182/article/details/85

原创 vue 與 json-server 刪除數據 (三)

具體代碼在上兩篇中,這篇主要是vue與json-server配合使用的 刪除js https://blog.csdn.net/qq_39109182/article/details/85160889  https://blog.csdn.

原创 vue 與 json-server 查詢 (四)

接上幾篇文章 https://blog.csdn.net/qq_39109182/article/details/85160889  https://blog.csdn.net/qq_39109182/article/details/85

原创 vue 與 json-server 當前頁 編輯 ref傳值( 二 )

接上一篇→ https://blog.csdn.net/qq_39109182/article/details/85160481 當前頁修改 修改的彈窗 <!-- 當前頁修改 --> <div class="meng" v-