- 博客(40)
- 资源 (1)
- 收藏
- 关注
原创 uniapp nvue使用全局公用变量丶方法
一般把公用变量和方法直接在main.js挂载到vue上vue页面可以直接this指向访问,但是nvue访问不到解决办法,在App.vue 上挂载到globalData上:<script> export default { // vue&&nvue共享数据 globalData: { text: 'text' }, onLaunch: function() { }, onShow: function() { // v
2022-02-09 09:07:26
2799
原创 webpack-theme-color-replacer 路由跳转之后,样式丢失
原因是canvas内嵌套canvas出现的问题,改为在外层加上div,后续需要渲染的canvas插到该盒子下即可。```javascript<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> &...
2021-09-28 15:03:42
604
1
原创 echarts V5 玫瑰图组件
1.安装echartsnpm install echarts --save2.组件参数 ajaxData:[ { value: 450, name: "财政", itemStyle: { color: "#ff3a72", }, }, { value: 40, name: "社保", .
2021-03-11 16:34:37
341
转载 JavaScript(es6)数组常用的方法
转载:https://www.cnblogs.com/fuzhengyi/p/10600555.html1.forEach()var data = [1,2,3,4,5];var sum = 0;//求和data.forEach((item)=>{sum+=item})//给原数组的每个值加1data.forEach((value,index,data)=>{data[index] = value + 1})2.concat() //合并多个数组,返回合并后的新数组,原数组没有
2021-03-02 10:24:50
310
原创 postcss-pxtorem 部分属性的值没有转换
原因是minPixelValue 配置了小于12px的值不会转换,例如padding-left:10px;module.exports = { plugins: { // 兼容浏览器,添加前缀 autoprefixer: { overrideBrowserslist: [ "Android 4.1", "iOS 7.1", "Chrome > 31", "ff > 3
2021-03-02 09:14:10
3188
原创 echarts V5 广东省地图
<!-- THIS EXAMPLE WAS DOWNLOADED FROM https://echarts.apache.org/examples/zh/editor.html?c=map-HK--><!DOCTYPE html><html style="height: 100%"> <head> <meta charset="utf-8"> </head> <body st.
2021-02-22 16:02:08
1511
原创 echarts v4 玫瑰图
<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8"> <title>玫瑰图</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=.
2021-02-22 14:21:40
1102
1
原创 idea Warning: No artifacts marked for deployment
1. 原因是导入的maven项目,maven库没有下载到。2. 切换maven库地址,项目重新打开刷新下载maven即可。
2021-02-02 16:32:36
1359
原创 uniapp 打包app 修改包名 证书签名
1.一般app会分为测试包和正式包,这时候就要同时安装2个app;包名,证书相同的情况下会覆盖安装,因此需要在打包的时候修改包名。
2021-02-01 16:00:04
10750
原创 pdfjs 使用方法
1 官方下载地址http://mozilla.github.io/pdf.js/getting_started/这里下载 pdfjs-2.5.207-dist 稳定版2 删除多余的语言包我这里只需要用中文语言包,其它的语言都删除了3.使用方法(window.open/iframe)部署到服务器上,打开viewer.html这个页面,然后把文件路径通过file参数传输进去即可预览如下图 window.open('http://127.0.0.1:5501/web/viewer.html?f
2020-12-17 14:48:20
1164
4
原创 idea maven
1.idea maven 配置 https://www.cnblogs.com/lyosaki88/p/11046502.html2.idea 插件https://blog.youkuaiyun.com/baidu_33464073/article/details/109050489?utm_medium=distribute.pc_feed.446721.nonecase&depth_1-utm_source=distribute.pc_feed.446721.nonecase
2020-12-11 15:22:36
98
原创 antd design pro 基础配置
1.关闭国际化BasicLayout.tsx注释 formatMessage 模块 // const { formatMessage } = useIntl(); return ( <ProLayout logo={logo} // formatMessage={formatMessage} {...props} {...settings} // breadcrumbName: formatMessage({ i
2020-12-08 11:21:43
1062
原创 uniapp 横屏加载webview 样式错乱
原因是onLaunch锁定横屏的时候有一定延迟,这时候还没完全切换为横屏的时候就已经加载webview,所以webview 是按竖屏的时候加载样式。 onLaunch: function() { console.log('App Launch'); plus.screen.lockOrientation("landscape-primary"); // 锁定横屏 // 设置全屏 plus.navigator.setFullscreen(
2020-11-27 10:12:17
1335
原创 uniapp uni.navigateBack 无法返回
原因是内嵌web-view的H5页面进行了跳转,调用返回的时候就失效了,要用uniapp其它方法进行跳转https://uniapp.dcloud.io/api/router?id=navigatebackH5端页面刷新之后页面栈会消失,此时navigateBack不能返回,如果一定要返回可以使用history.back()导航到浏览器的其他历史记录。 uni.navigateBack({ delta: 1 });...
2020-09-15 10:58:24
10003
1
原创 The computed property “messageList“ is already defined in data. found in
The computed property "messageList" is already defined in data.found in在uniapp uview中使用封装的vuex定义全局变量,在页面data使用的时候报错1.原因是定义的vuex变量名和页面里面的data定义的字段名一样
2020-09-14 11:41:55
2806
转载 npm install Error: not found: python2
1.安装python2.72.安装vs工具3.设置npm时候使用的pythonnpm config set python python2.74.设置vs路径??npm config set msvs_version 20175.npm --add-python-to-path='true' --debug install --global windows-build-tools转自https://github.com/nodejs/node-gyp#on-windows...
2020-09-09 21:00:55
4968
原创 uniapp nvue web-view不显示 宽高设置不生效
1.nvue web-view需要手动设置宽高2.设置百分比丶px宽高无效,需要使用flex 1 才能铺满全屏<template> <view class="work_index"> <!-- @onPostMessage="htmlMessage" --> <!-- optionData.appLink --> <web-view class="webView_class" :webview-styles="webviewStyle
2020-08-19 09:28:04
7355
1
原创 pdfjs Cannot use the same canvas during multiple render() operations
原因是canvas内嵌套canvas出现的问题,改为在外层加上div,后续需要渲染的canvas插到该盒子下即可。<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> </hea
2020-08-18 10:55:35
2864
原创 tomcat 运行项目乱码
1.tomcat conf 配置文件中server.xml 添加 : URIEncoding=“UTF-8” (但是百度上都这么说,具体能不能通过,我没有通过)<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" /> <!-- A "Conn
2020-08-11 11:59:16
478
原创 uniapp uview Property or method “click“ is not defined on the instance but referenced during render
// An highlighted block <u-tabbar :before-switch="beforeSwitch" v-model="current" :show="show" :bg-color="bgColor" :border-top="borderTop" :list="list" :mid-button="midButton" :inactive-color="inactiveColor" :activeColor="ac
2020-08-06 09:19:16
1426
原创 用户pac规则设置 参数设置 用户pac设置
// An highlighted block @@dogcloud.xyz, @@ggjs.xyz, ||abc.com, ||def.com, 这样的意思是: dogcloud.xyz 和 ggjs.xyz 是不走代理模式, abc.com 和 def.com 是走代理模式。
2020-08-02 01:54:32
12485
2
原创 vue 非template模式 v-if 判断数组长度问题
必须在页面加载的时候设置表单校验规则,否则提交校验的时候无效// An highlighted block <div v-if="list.length<=5"> </div>这个时候页面会出现错乱// An highlighted block <div v-if="list&&list.length<6"> </div>改成这样子就不会报错了测试是 “=” 识别不了?还有其它解决方法请留言提供...
2020-07-31 17:18:21
1076
原创 uniapp TypeError: undefined is not an object (evaluating ‘modules[moduleId].call‘)
uniapp基座从2.78升级到2.83后,app报错并出现白屏排查下来发现是某个组件的文件夹名称有问题。。。。把有问题的文件夹名称修改(有问题的名字:personalCenter),然后就可以运行了。。。怀疑是文件夹名称跟项目里的东西冲突了???反正问题是解决了。。。...
2020-07-31 11:24:30
6876
3
原创 uniapp App平台 uView UI 表单校验规则失效
必须在页面加载的时候设置表单校验规则,否则提交校验的时候无效// An highlighted block onReady() { // 设置表单校验规则 否则表单校验无效 this.$refs.uForm.setRules(this.rules); },
2020-06-17 11:09:32
8468
8
原创 uniapp App平台 v3 模式暂不支持在 js
App平台 v3 模式暂不支持在 js把main.js 引入的css 放到app.vue头部
2020-06-15 16:47:05
7440
3
原创 vue-color 拾色器 非temple/render模式下使用
vue-color 拾色器 非temple/render模式下使用// An highlighted block<!DOCTYPE html><html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-
2020-05-28 09:15:26
384
原创 echarts 3d地图
echarts 3d地图 var option = { title: { show:false, text: '地图', left: 'center', top: 20, textStyle:{ color:'#fff', fontSize:24 } }, geo3D: { map: 'guangdong', viewControl: { center: [-1
2020-05-27 10:07:58
4610
原创 uni-app desc of scope.userLocation is empty 报错
1.使用uni-app编译后在小程序上点击真机调试报错desc of scope.userLocation is empty2.位置接口设置为不勾选即可
2019-10-21 14:35:37
3347
1
原创 git 项目
1.安装git2.安装完成后打开命令行(Git bash here)(必须打开这个 否则后面保存文件的时候会提示没有权限)3.创建配置文件 vim ~/.gitconfig4.配置内容(按I进入编辑模式 按esc退出 复制文本:右键Paste)[user] name=578 email=578[alias] co=checkout ci=c...
2018-02-26 16:42:24
136
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人