上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: 虽然自从leftpad事件之后,NPM取消了npm unpublish和npm publish -f操作,但是我们错误地把测试版发布成正式版之后,不要惊慌,要稳住,因为我们能赢。 概念 首先介绍几个概念: version 作为开发者,版本号肯定不陌生,发布到npm后,每一个版本号都对应了其资源文件, 阅读全文
posted @ 2020-05-29 08:46 mrt_yy 阅读(1991) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>本地网页</title> </head> 阅读全文
posted @ 2020-05-22 00:00 mrt_yy 阅读(781) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="js/jq1.7.js" type="text/javascript" charset="utf-8"></script> </head> 阅读全文
posted @ 2020-05-12 15:02 mrt_yy 阅读(487) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <title>图片转base64</title> </head> <body> <input type='file' class='file'> <div class="Img 阅读全文
posted @ 2020-05-12 14:23 mrt_yy 阅读(193) 评论(0) 推荐(0) 编辑
摘要: var s = document.getElementById('file').files[0];//$(this)[0].files[0] var formData = new FormData(); formData.append("file", s); $.iBoxWait(); $.ajax 阅读全文
posted @ 2020-05-12 11:41 mrt_yy 阅读(5583) 评论(0) 推荐(0) 编辑
摘要: let request = require('request');//当然我们引用要写在最上面,但为了看的清楚点就一步一步走吧 request({ //请求地址 url:'https://api.mch.weixin.qq.com/secapi/pay/refund', //还记得准备的证书吗这里就 阅读全文
posted @ 2020-05-07 14:35 mrt_yy 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 安装:npm install xml2js 使用: var xml2js = require('xml2js'); var builder = new xml2js.Builder(); // JSON->xml var parser = new xml2js.Parser({ explicitAr 阅读全文
posted @ 2020-05-07 13:37 mrt_yy 阅读(194) 评论(0) 推荐(0) 编辑
摘要: var dic = { 2: {"score": 20}, 1: {"score": 25}, 3: {"score": 15}, 4: {"score": 60}, } console.log("输出最初的字典元素: "); for(var key in dic){ console.log("ke 阅读全文
posted @ 2020-05-07 10:07 mrt_yy 阅读(8525) 评论(0) 推荐(0) 编辑
摘要: 1. 启动redis redis-server 2. 初始化 node操作redis需要引入redis包; const redis = require('redis'); const client = redis.createClient( 6379, '127.0.0.1'); const uti 阅读全文
posted @ 2020-04-30 08:08 mrt_yy 阅读(243) 评论(0) 推荐(0) 编辑
摘要: let routes = [ { path: "/cover/:id", component: resolve => require(['./cover.vue'], resolve), name: "cover", },] this.$router.options.routes.push(rout 阅读全文
posted @ 2020-04-23 21:56 mrt_yy 阅读(828) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页