- 博客(8)
- 收藏
- 关注
原创 安卓+vue混合开发,打开安卓相册,图片上传
在router钩子函数中获取到安卓传过来的token值function getGetToken(call) { window.WebViewJavascriptBridge && window.WebViewJavascriptBridge.send( 'webGetToken' , function (responseData) { try { localStorage.setItem('userToken', JSON.parse(
2021-11-15 15:13:25
2040
原创 Element-UI+vue多选全选
点击全选,选中全部选项全部选项选中后,自动跳转到全选export function choiceHandler(val, that, all, active, len) { // console.log(all); if (val == '') { that[active] = ["全部"]; that[all] = true; from = ""; return } let from = ''
2021-11-15 14:57:56
797
原创 Element-UI + vue限制日期的选择到时分秒
需求:限制时间的选择,只能选择当前时候以后的时间。使用element-ui的el-date-picker组件<template><el-date-picker v-model="expireDate" type="datetime" @blur="handle" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" :picker-options="pickerOptions"
2021-11-15 14:49:00
1005
原创 Vue中svga特效展示
Vue中svga特效展示这个url是线上地址,注意需要在vue.config.js里配置代理,不然会报跨域的错误。附个文档链接↓Package - svgaplayerweb<template><div id="giftStyleAdd"></div></template><script>created() { this.showSvg(url)},methods: {//展示svga方法 sho.
2021-11-15 14:39:23
1136
原创 Element-UI+Vue改变单元格字体样式
<template> <el-table v-loading="table_loading" element-loading-text="加载中..." max-height="800" border fit highlight-current-row :data="list" ref="multipleTable" @selection-change="handleSel.
2021-11-15 14:31:06
567
原创 【笔记备忘】forEach循环时,得到的全是最后一组数据
let obj = { text: "", value: "",};get("/api/common/dict/select", data) .then((res) => { if (res.code == 1) { res.data.forEach((item, index) => { obj.text = item.label; obj.value = index; this.$set(this.actions...
2021-06-18 18:04:33
2130
2
原创 git上传远程仓库过滤文件
找到.gitignore文件,在文件里面写需要过滤的文件.vscode/*!.vscode/settings.json!.vscode/tasks.json!.vscode/launch.json!.vscode/extensions.jsonnode_modules/*.zipnode_modules/的意思是过滤掉整个文件夹的内容
2021-05-26 09:40:38
304
原创 Vue初始化v-if不生效问题。
<template> <van-button round type="info" @click="switchFun"> <p class="" v-show="switchStatusNew">客源</p> <p v-show="!switchStatusNew">房源</p> </van-button></template><script>.
2021-05-25 18:02:37
2414
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅