上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 我们需从配置源码上去添加 第一步 登录微信公众平台添加第三方插件 添加预约日历直接申请 免审。。 插件地址:https://github.com/jasondu/wxa-plugin-calendar 第二步 打开manifest.json 源码视图 在mp-weixin里添加插件 官网文档:htt 阅读全文
posted @ 2021-01-04 10:25 小泽沐优声 阅读(1278) 评论(0) 推荐(0)
摘要: 创建uniapp 的方法 PS:这种方式比起用HBuilder X创建后运行的项目体积会更小至少小于一倍。 指令 指令安装 vue create -p dcloudio/uni-preset-vue my-project 如果没有安装Vue,先安装Vue npm install -g @vue/cl 阅读全文
posted @ 2020-12-30 13:48 小泽沐优声 阅读(440) 评论(0) 推荐(0)
摘要: uniApp 在App.vue 写上globalData和onShow同级 onShow(){}, globalData:{ } 调用 let app = getApp(); app.globalData={} 阅读全文
posted @ 2020-12-30 09:09 小泽沐优声 阅读(126) 评论(0) 推荐(0)
摘要: 绘制自动换行的字符串 drawText(ctx, txtwid, t, x, y, w){ var chr = t.split(""); var temp = ""; var row = []; ctx.font = "20px Arial"; ctx.fillStyle = "black"; ct 阅读全文
posted @ 2020-12-28 14:44 小泽沐优声 阅读(544) 评论(1) 推荐(0)
摘要: JS删除数组里的某个值 更新2016-11-17:在stackoverflow高分回答上看到jquery之父John Resig曾经的文章写过的一个代码: // Array Remove - By John Resig (MIT Licensed) Array.prototype.remove = 阅读全文
posted @ 2020-12-27 00:07 小泽沐优声 阅读(525) 评论(0) 推荐(0)
摘要: JS获取当前IP地址 获取客户端公网IP <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> document.write(returnCitySN["cip"]+' 阅读全文
posted @ 2020-12-26 23:55 小泽沐优声 阅读(2664) 评论(0) 推荐(0)
摘要: 生成项目目录结构工具——mddir 实现步骤很简单 安装cnpm install mddir -g cd到这个你要生成的目录 执行cmd执行mddir 会在当前目录生成directoryList.md文件 生成后 |-- wxcomponents |-- vant |-- action-sheet 阅读全文
posted @ 2020-12-24 15:56 小泽沐优声 阅读(110) 评论(0) 推荐(0)
摘要: document.body.contentEditable='true'; 阅读全文
posted @ 2020-12-18 22:12 小泽沐优声 阅读(67) 评论(0) 推荐(0)
摘要: js导出excel文件 这里介绍一种前端导出excel表格的方法,感觉非常简单实用,直接贴代码。 直接复制代码 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>导出excel实例</title> </head> <body> < 阅读全文
posted @ 2020-12-12 22:56 小泽沐优声 阅读(338) 评论(0) 推荐(0)
摘要: vue3安装ant 全局安装 -- 指令 cnpm i --save ant-design-vue@next -S main.js -- 引入 import { createApp } from "vue"; import App from "./App.vue"; import router fr 阅读全文
posted @ 2020-12-06 00:25 小泽沐优声 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页