- 博客(43)
- 收藏
- 关注
原创 html页面生成pdf
引用html2canvas<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.3.2/html2canvas.min.js"></script>mounted() { setTimeout(()=>{ this.pageChangePdf() },800)}methods: { // 将页面转换为图片打印 p
2024-04-30 14:57:19
110
原创 html和原生app交互
goNext.onclick = function () { $('#homeVideo').trigger("pause"); let url = 'back' // window.location.href="rules.html" postMessage(url) function postMessage(type) { //参数 let u = navigator.userAgent; l.
2022-05-16 11:44:52
222
原创 iOS无法自动播放video视频
<video id="homeVideo" webkit-playsinline='true' playsinline='true' class="video-js" muted autoplay loop="loop" preload="auto" width="100vh" height="100vw" data-wf-ignore="true" data-object-fit="cover" src=""> <!-- <source id="...
2022-05-16 11:39:55
446
原创 截取url参数
// var surl = 'https://xxxxxxxxx/annualFee/index.html?userId=11036&env=1' var obj = {}; var urls = surl.substr(surl.indexOf('?') + 1).split('&'); for (var i = 0; i < urls.length; i++) { var temp = urls[i].split('='); obj[temp[0]] = .
2022-05-09 15:52:34
86
原创 vue电子围栏圆形高德
<!doctype html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> <style>.
2022-04-22 17:40:55
489
原创 vue电子围栏多边形高德
<!doctype html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> <style>.
2022-04-22 17:39:33
1613
原创 uniapp小程序分包
uniapp小程序分包{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", "style": { "navigationBarTitleText": "", "navigationBarBackgroun...
2022-04-20 09:32:49
99
原创 vue+element上传图片到阿里云
<template> <div> <el-upload action="#" list-type="picture-card" :on-preview="handlePictureCardPreview" :on-remove="handleRemove" :http-request="uploadAvatar" :file-list="fileList" :multiple="t.
2022-03-29 17:31:51
449
原创 vue+element级联选择el-cascader省市区
html<el-cascader v-model="value" :options="locationsData" @change="handleChange" :props="props" placeholder="省/市/区" clearable ></el-cascader>locationsData: [.
2022-03-18 11:38:24
1585
原创 vue路由跳转参数丢失
// 传参toDetail(){ this.$router.push({ name:"newsDetail", params:{content:item}//传递过去的参数 }) }// 取参this.$route.params.comtent这种参数会丢失// 传参this.$router.push({ path: "/newsDetail", query: {.
2022-01-06 15:03:54
823
原创 vue点击单个显示隐藏
<view v-if="!item.show" style="display: flex;align-items: center;" @tap="showYhq(index)">优惠卷的适用范围 <image style="height: 30rpx;width: 30rpx;" src="../../static/bo.png"></image></view>//展示优惠券 showYhq(index){ this.$set(.
2022-01-05 14:54:23
612
原创 uniapp和原生app交互
发送消息uni.sendNativeEvent("3", appT, function(e) { if (e == 1) { plus.runtime.quit() } });获取消息this.appDataFirst = plus.runtime.arguments;this.typeOFfN = typeof(this.appDataFirst)this.appDataFirstCopy = JS
2022-01-05 14:48:23
1132
原创 uniapp上传图片视频uniapp上传图片视频
<template> <view> <!-- 评分 --> <view class="grade" v-for="(item,index) in talk" :key="index"> <view> <view>{{item.title}}</view> <view> <uni-rate v-model="item.value" @change="(e)=>.
2021-12-01 11:45:07
759
原创 vue状态判断。vue过滤器状态判断
filters: { status(v) { switch (v) { case 1: return "待付款"; case 2: return "待使用"; case 3: return "已使用"; case 4: return "已完成"; case 5: return "退款中"; case 6: return "已退款"; case 7: .
2021-11-29 16:21:03
584
原创 mac苹果电脑下载vscode
官网下载缓慢使用国内镜像https://vscode.cdn.azure.cn/stable/b4c1bd0a9b03c749ea011b06c6d2676c8091a70c/VSCode-darwin-universal.zip
2021-10-28 16:59:41
523
1
原创 原生js vue地图下钻
<template> <div id="china_map_box"> <el-button type="primary" size="mini" class="back" @click="back" v-if="deepTree.length > 1">返回</el-button> <div class="echarts"> <div id="map"><...
2021-10-27 15:24:42
435
1
原创 uniapp封装请求
uniapp封装const BASE_URL = “XXXXXXXX” //公共请求头const imgUrl = ‘XXXXXXXX’ //图片请求路径const request = (url, method, data) => {return new Promise((resolve, reject) => {uni.request({url: BASE_URL + url, //仅为示例,并非真实接口...
2021-06-10 15:23:07
266
1
原创 vue复制功能,点击复制input内容
首先要安装:cnpm install clipboard --save然后再main.js中:import Clipboard from ‘clipboard’;Vue.prototype.Clipboard=Clipboard;html:<input v-show="shsw" v-model="center2" type="password" /> <input v-show="shaw" v-model="center2" type="text" />
2021-02-03 09:54:28
594
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人