昔不亏的头像 ID: 48323625554

昔不亏

HelloWorld 社区成员

wrk

文章21
个人网站0
加入社区2021

electron的使用

前提:在D盘下新建electron文件夹1:下载模板winR输入cmd,打开命令行窗口,进入正确路径,输入gitclonehttps://github.com/electron/electronquickstart则该路径下会生成electronquic

「解决 — vue调用百度ai人脸识别接口跨域报错」

之前调都没毛病的,这次咋就开始报跨域了捏问题:跨域解决:配置proxy代理1:修改vue.config.js文件2:修改baseURL3:修改前后对比注:ProxyTable会在打包后失效,可以使用反向代理工具,例如nginx,或者让后端解决

「JS — 操作」更新中

数组中是否存在某值languagearr.indexOf('XXX')//不存在返回1,存在返回该值坐标截取字符串圆括号中的内容languagevarsource'url(XXX)'varres/(.)?(?:\(|()(.)(?\)|))/.exec(source)console.log(res2)//XXX字符串转json

「Vue — 插件」标尺vue-sketch-ruler

安装npminstallsavevuesketchruler示例<template<divclass"wrapper"id"wrapper"<SketchRule:lang"lang":thick"thick":scale"scale":width"width":height"

「小程序 — 云开发」搜索跳转

样式如图:在home.wxml中js<confirmtype:键盘的右下角按钮显示'搜素'bindconfirm:按下键盘'搜索'按钮bindinput:在输入框输入过程中触发事件bindtap:点击搜索图标<viewclass"search"<inputtype"text"placeholder"搜索菜品"con

「组件」侧边hover锚点导航双向绑定

样式如图:1:在components文件夹下新建SideAnchorNav.vuejs<template<divclass"sideAnchorNav"<divclass"leftnav":class"navText?'navHover':''"@mouseenter"navTexttrue"@mou

「组件」倒计时

1:在components文件夹下新建CountDown.vuejs<template<p{{time}}</p</template<scriptexportdefault{data(){return{time:'',

「组件」返回顶部按钮

样式如图1:在components文件夹下新建BackTop.vuejs<template<divclass"backTopBtn"<ahref"javascript:;"<divvif"btnFlag"class"btn"@click"backTop"TOP</div

「Vue — 插件」视频播放vue-video-player

1:npminstallvuevideoplayersave2:在main.js中jsimportVideoPlayerfrom'vuevideoplayer'require('vuevideoplayer/node_modules/video.js/dist/videojs.css')require('vuevide

「Vue — 插件」轮播图vue-awesome-swiper

1:安装cnpminstallvueawesomeswiper@3savedevcnpminstallswiper@32:在main.js中jsimportVueAwesomeSwiperfrom'vueawesomeswiper'import'swiper/dist/css/swiper.css'Vue.use(Vu

「Vue — 插件」日期时间选择vue2-datepicke

网址:实例:只能选择整点或者半点1:npminstallvue2datepickersave2:在需要使用的页面中js<datepicker:open.sync"open"vmodel"BeginTimes":minutestep"30":houroptions"hours":secondstep"60"va

「Vue — 插件」轮播图vue-awesome-swiper

1:安装cnpminstallvueawesomeswiper@3savedevcnpminstallswiper@32:在main.js中jsimportVueAwesomeSwiperfrom'vueawesomeswiper'import'swiper/dist/css/swiper.css'Vue.use(Vu

「Vue — 插件」PDF预览vue-pdf

样式如图:1:npminstallsavevuepdf2:在需要使用的页面中js<divclass"page"{{currentPage}}/{{pageCount}}</div<divclass"pdf"<span@click"changePdfPage(0)"class"arrow":class"{g