原创 vue項目(一)
手機格式/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/ //驗證碼 getCode() {
原创 獲得電腦ip地址
使用方法一 windows+R 控制面板 輸入cmd ipconfig/all 方法二 使用
原创 小程序二維碼--保存圖片
// 保存海報 postSave(e) { wx.showLoading({ title: '保存中...' }) wx.downloadFile({ url: 'http://xx
原创 顏色轉換
RGB顏色值與十六進制顏色碼轉換工具 鏈接:https://www.sioe.cn/yingyong/yanse-rgb-16/
原创 商戰修補
當功能完成後,回過頭來看自己寫的代碼塊真長 一個頁面中所包含的嵌套語句太多,導致代碼異常的多 造成困惑,每次在修改頁面的佈局,容易看走眼 找很長的時間-----【可以在文檔中查找 ctrl+c ctrl+f】 【代碼不清晰,找
原创 通過uni-app編寫微信小程序
## 傳入token值 將微信開發者工具的操作欄打開 ***** 寫死 token 發現Storage 填入值---token ## 拿到手的項目是之前的 我現在編寫成爲我的,需要更改id
原创 時間戳轉換
formatDateTime(inputTime) { //時間戳 轉 YY-mm-dd HH:ii:ss var date = new Date(inputTime); var y = dat
原创 下拉刷新+加載更多
<template> <view> <page-head :title="title"></page-head> <view class="uni-padding-wrap uni-common-mt"> <view c
原创 獲得經緯度
openLocation: function (e) { console.log(e) var value = e.target.value uni.openLocation({ longitude:
原创 file
<template> <view> <page-head :title="title"></page-head> <view class="uni-padding-wrap uni-common-mt"> <b
原创 about
<template> <view class="about"> <view class="content"> <view class="qrcode"> <image src="https://img.cdn.ali
原创 底部彈出選則層
<template> <view> <page-head :title="title"></page-head> <view class="uni-padding-wrap"> <view class="uni-btn-
原创 animation動畫實例
<template> <view> <page-head :title="title"></page-head> <view class="uni-padding-wrap uni-common-mt"> <view c
原创 clipboard剪切板
<template> <view> <page-head :title="title"></page-head> <view class="uni-padding-wrap"> <view class="uni-titl