自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(58)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

原创 js跳出循环

【代码】js跳出循环。

2023-08-18 11:43:06 174

原创 vscode格式化代码,

【代码】vscode格式化代码,

2023-08-10 11:02:20 271

原创 html 原生 js 模块 导入 导出

【代码】html 原生 js 模块 导入 导出。

2023-07-21 11:58:55 295

原创 vue3+vite创建项目

【代码】vue3+vite创建项目。

2023-07-20 15:28:20 81

原创 el-select滚动加载,自定义指令

【代码】el-select滚动加载,自定义指令。

2022-11-07 13:32:53 252 1

原创 i18n 语言代号

i18n语言代号

2022-08-20 17:15:36 279

原创 gitee上传代码

gitee代码上传

2022-07-24 10:15:34 346

原创 vue打包本地预览

vue打包本地预览

2022-06-25 12:55:48 336

原创 js下载图片

// 方法一浏览器打开图片预览,用方法二// 方法一downloadGood(downloadUrl) { var aLink = document.createElement("a"); aLink.style.display = "none"; aLink.href = downloadUrl; aLink.setAttribute("download", "");

2022-04-01 13:42:26 134

转载 js计算精度问题

// js计算精度 ===================// 判断obj是否为一个整数let isInteger = (obj) => { return Math.floor(obj) === obj}/* * 将一个浮点数转成整数,返回整数和倍数。如 3.14 >> 314,倍数是 100 * @param floatNum {number} 小数 * @return {object} * {times:100, num: 314} */let toI.

2022-03-01 12:49:39 638

原创 uniapp,nginx配置

// 1、h5manifest.json文件h5配置运行基础路径改成/h5/,默认是./![在这里插入图片描述](https://img-blog.csdnimg.cn/8b93c94bb0394c9387ec19505fd8dddd.jpg?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAWW91ICAgIGFyZSAgICBteSAgICBzdW5zaGluZS4uLi4=,size

2021-11-17 17:04:08 2573

转载 vue2,nginx配置

// 1、router/index.jsconst routers = new Router({ mode: 'history', base: '/seller', routes: staticRouter});// 2、config/index.jsbuild: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), // Paths

2021-11-17 16:45:13 1932

原创 苹果开发者账号注册流程

1、以公司名义注册2、不管以公司名义还是个人名义都得申请先appleId,因为下面注册都是根据appleId来的3、注册邓白氏编码,(D-U-N-S) Number是一种实时动态的企业身份标识(公司名义注册要,个人的不用),访问苹果开发者官网https://developer.apple.com/support/![在这里插入图片描述](https://img-blog.csdnimg.cn/052f387fdc2b427dacb26379c83bb51d.png?x-oss-process=ima

2021-10-29 11:35:59 972

原创 uniapp苹果底部栏自适应配置

// css样式.footer-auto { padding-bottom: env(safe-area-inset-bottom);}

2021-07-02 10:25:39 1304

原创 uniapph5不显示标题

// pages.json 配置"globalStyle": { "app-plus": { //#ifdef H5 "navigationStyle": "custom" //#endif }, "navigationBarTextStyle": "black", "navigationBarTitleText": "", "navigationBarBackgroundColor": "

2021-07-02 10:23:42 1537

原创 vuejs断点调试Debugger for Chrome

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "ty

2021-06-29 15:53:30 204

原创 公众号分享

1、先拿集成微信 jsimportwxsharefrom'@/common/js/wxShareModule/wxShareModule'路

2021-06-18 12:41:27 531

原创 公众号授权登录

1、配置登录公众号,设置与开发=》接口权限=》=>网页服务=>网页授权 网页授权获取用户基本信息

2021-06-18 12:24:24 268

原创 elementui表格单选

<el-table :data="dataArr" border @select="handleSelect" ref="multipleTable" row-key="goodsSpuID" :header-cell-class-name="cellClass"> <el-table-column type="selection" width="50" align="center" :reserve-selection="tr

2021-06-04 17:13:55 302

原创 element-ui重新封装弹框

// 新建eleui jsimport { MessageBox } from 'element-ui';const eleui = { confirm(obj) { var message = obj.message || '确定删除吗?' var title = obj.title || '温馨提示' return MessageBox.confirm(message, title, { type: 'danger',

2021-06-03 17:13:52 176

原创 vuejs改变数组对象值,视图不更新问题

// 利用vuejs $set方法// 数组arr=[1,2,3]// 1 代表下标,5代表新值this.$set(this.arr, 1, '5')// 数组套对象// arr[// { name: 'jjj', price: 11, count: 2, totalAmount: 100 },// { name: 'hhh', price: 12, count: 3, totalAmount: 120 },// ]this.arr.forEach((item, index

2021-05-24 15:44:20 296

原创 uniapp上拉到达底部加载,返回顶部,下拉刷新

// 1、使用scroll-view方法,scroll和scrolltolower<scroll-view @scroll="scroll" @scrolltolower="scrolltolower" scroll-y scroll-with-animation :scroll-top="scrollTop" class="wh"></scroll-view><view v-if="old.scrollTop > 500" @click="returnTop"

2021-04-29 11:52:50 923

原创 app 跳转小程序

<template> <view> <button @click="nav">跳转小程序</button> </view></template><script> export default { data() { return { sweixin: 'weixin' }

2021-04-26 14:46:47 244

原创 uniapp scroll-view防抖

<scroll-view @scroll="scroll" @scrolltolower="scrolltolower" :scroll-anchoring="true" scroll-y scroll-with-animation :scroll-top="scrollTop" class="wh"></scroll-view>scrollTop: 0,old: { scrollTop: 0},// 滚动scroll(e) { // this.scr

2021-04-15 18:15:21 1702

原创 v-for :key问题

// v-for index as key on <transition-group> children with object properties// 具有相同的index下标// 修改为index + 'a'index + 'b'

2021-04-15 09:37:32 51

原创 vuejs图片上传组件

// 包括上传,回显,预览,删除,拖拽<template> <div class="fc"> <draggable @start="on_draggable_start" @end="on_draggable_end" v-model="file_list_" chosenClass="chosen" forceFallback="true" group="people" animation="1000" class="fc draggable-box"

2021-04-11 09:37:33 82

原创 uniapp图片上传组件,包括回显

<template> <view class="img-list"> <view v-if="!multiple"> <view v-if="fileStr_" class="img-item pr"> <view @click="previewImage('radio', fileStr_)" class="img-box auto-img oh">

2021-04-11 09:13:35 1704

原创 vscode光标快捷键上下左右移动

alt+i 上alt+k 下alt+j 左alt+l 有alt+u 行首alt+o 行末// Place your key bindings in this file to override the defaultsauto[][ { "key": "alt+i", "command": "cursorUp", "when": "textInputFocus" }, { "key": "up", "comman

2021-04-01 10:35:05 2751 2

原创 sku规格组合形成的路径

var arr = [ [1,2], [3,4], [5,6, 'a'],]var arr_ = this.attrUrl(...arr)console.log(arr_)attrUrl() { return Array.prototype.reduce.call(arguments, function(a, b) { var ret = [] a.forEach(function(a) {

2021-03-11 14:22:56 109

原创 flex垂直两端分布

<view class="test-box"> <view class="left-box">left</view> <view class="right-box"> <view class="right-top">right top</view> <view class="right-lower">right l

2021-02-25 16:26:14 695

原创 editor斜体问题

.ql-blank:before { font-style: normal; }

2021-01-25 13:56:46 381

原创 vuejs使用less

1、安装npm install less less-loader2、webpack.base.conf.js == module == rules 配置 { test: /\.less$/, loader: "style-loader!css-loader!less-loader", }, 3、页面<style scoped lang="less"></style>// 重跑服务会报错,原因less-loader版本

2020-12-16 12:23:10 107

原创 elementui upload校验是否上传图片

<el-form-item label="附件:" prop="file_id" ref="fileRule"> // 加ref <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" :on-success="handleSuccess" :file-list="fileList"> <el-button size="small"

2020-12-12 11:27:39 1438

原创 vuejs父组件传子组件数据不更新视图的方法

props: { file_list: { type: Array, default() { return [] } }},data() { return { file_list_: this.file_list, // prop 位单向数据流,声明多一个变量来存 }},watch: { file_list(newValue, oldValue) {

2020-12-08 12:37:22 1853

原创 vuejs子组件执行点击事件

1、添加.native修饰符<uploadFile @click.native="uploadIndex(index, index_)" :uploadObj="uploadObj" @toParent="toParent"></uploadFile>

2020-09-24 11:43:57 1043

原创 vuejs使用wangeditor富文本编辑器组件

<template lang="html"> <div class="editor"> <div ref="toolbar" class="toolbar"> </div> <div ref="editor" class="wang-text"> </div> </div></template><script> import E from 'wange

2020-09-17 14:43:53 391

原创 iview table input 动态改变数据的卡顿问题

1、title模板,change,blur事件{ title: '原价', key: 'old_price', align: 'center', render: (h, params) => { return h( 'i-Input', { props: { value: params.row.old_price }, on: { 'on-change': (e)

2020-08-18 09:48:47 1121 1

原创 vuejs父组件主动获取子组件的信息

1、父获取子组件,定义ref<regionAdmin ref="headerChild"></regionAdmin><button @click="headerChild()">父提交</button>// 通过this.$refs.headerChild.属性this.$refs.headerChild.方法2、子获取父组件this.$parent.属性this.$parent.方法...

2020-08-18 09:40:34 283

原创 js获取当天0点时间戳

// 获取0点时间戳new Date(new Date().toLocaleDateString()).getTime()var strTime = '2020-07-11 12:00:00'// 如果要指定那天的时间ios 这样写会是 nan,安卓没问题new Date(strTime).getTime()

2020-07-11 15:41:48 9761

原创 小程序下拉刷新,分享

1、下拉刷新// --json文件{ "usingComponents": { }, "enablePullDownRefresh": true}// --js文件/** * 页面相关事件处理函数--监听用户下拉动作 */onPullDownRefresh: function () { this.arbeitskreisList(0); wx.stopPullDownRefresh()},2、分享<button open-type="sha

2020-07-08 11:50:54 84

word。。。。。。。。。。。。。

word。。。。。。。。。。。。。

2022-08-13

uploadFile.vue

用vue封装iview的upload组件,图片上传功能(文件流),有vue的父子组件的传值(通信)

2019-11-07

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除