- 博客(7)
- 收藏
- 关注
原创 Promise 菜鸟教程|new Promise().then() 之间的关系
Promise 菜鸟教程|Promise和then之间的关系peromise 语法1peromise 语法2peromise 语法1注意:new Peromise((fun1)=>{})的的fun1带着的参数与 then((data1){}) 中data1对应,按顺序对应let promise = new Peromise((fun1) =>{ //这里面放入异步请求代码 自己定fun1在什么情况下执行 如下实例代码所示});//取用Peromise结果promise.then(
2021-04-19 13:20:21
5809
原创 URL地址中文传参乱码处理
// URLEncoder.encode("测试", "utf-8"); //转换成为:%E6%B5%8B%E8%AF%95//只需要把中文这样处理就行 例如如下:String riUrl = "http://127.0.0.1:8080/#/pages/user/userForm?id=1&name="+URLEncoder.encode("张三", "utf-8")+"&age=12&sex="+URLEncoder.encode("男", "utf-8");获取的地
2020-12-08 14:31:06
485
原创 微信公众号图片上传接口实例|微信卡卷logo上传实例|微信会员卡logo上传实例
Java+微信公众号 图片上传微信图片上传接口实例微信图片上传接口实例针对微信公众号接口:https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token=ACCESS_TOKEN //引入的包: import cn.hutool.core.io.FileUtil; import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpResponse; import cn.hut
2020-12-02 11:05:39
839
原创 JS Date时间格式化
js javaScript Date格式化为字符串//varType: //wordage:yyyy年MM月dd日 HH时mm分ss秒 //whipptree: yyyy-MM-dd HH-mm-ss //backslash:yyyy/MM/dd HH/mm/ss //whipptreeAndColon:yyyy-MM-dd HH:mm:ss //backslashAndColon:yyyy/MM/dd HH:mm:ss //no:yyyyMMDDHHmms
2020-11-19 11:23:34
1142
原创 springboot相互依赖 server相互引用
public class RoleService{ @Autowired @Lazy private UserServer userServer;}public class UserService{ @Autowired @Lazy private RoleService roleService;}
2020-11-13 15:46:13
1311
原创 wxJava+springboot+idea 对接详细流程(微信公众号)
wxJava+springboot+idea 对接详细流程首先是pom.xml文件的架包这里我只用到了第一个还有application.yml文件(这个文件一定要配置,wxJava开发文档是说的很清楚的,百度已有很多)其次是我们的配置.java文件,(可能叫配置不正确)到这里基本上就配置完了,剩下的就是调用,这里以微信公众号网页授权为实例我觉得我得贴一下前端的代码,但是感觉多余,还是贴出来吧。vue做的前端首先是pom.xml文件的架包这里我只用到了第一个 <dependency>
2020-06-18 09:58:33
2864
3
原创 收据模板 纯css+html
收据模板 纯css+html<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>收据模板</title> <style type="text/css"> .main{width: 960px; height: 480px; m...
2020-05-02 13:25:34
4364
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人