摘要: uni.chooseImage(OBJECT):从本地相册选择图片或使用相机拍照。 uni.uploadFile(OBJECT):将本地资源上传到开发者服务器,客户端发起一个 POST 请求,其中 content-type 为 multipart/form-data。 uni.chooseImage 阅读全文
posted @ 2020-05-19 13:43 土拨鼠1024 阅读(2745) 评论(0) 推荐(0) 编辑
摘要: uni.downloadFile(OBJECT):下载文件资源到本地,客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。 uni.saveImageToPhotosAlbum(OBJECT):保存图片到系统相册 uni.downloadFile({ url: val,//路径 su 阅读全文
posted @ 2020-05-19 13:34 土拨鼠1024 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 1、通过ES6中的键过滤对象属性 const raw = { item1: { key: "sdfd", value: "sdfd" }, item2: { key: "sdfd", value: "sdfd" }, item3: { key: "sdfd", value: "sdfd&q 阅读全文
posted @ 2020-05-13 15:15 土拨鼠1024 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1、id=“ABOUTUS” 2、<a href="#ABOUTUS">ABOUT US</a> /*锚点动效*/ $('a').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.replace( 阅读全文
posted @ 2020-05-08 11:00 土拨鼠1024 阅读(422) 评论(0) 推荐(0) 编辑
摘要: <ve-candle :extend="chartExtend"></ve-candle> this.chartExtend = { 'xAxis.0.axisLabel.rotate': 45, //x轴文本倾斜 'xAxis.0.axisLabel.color': 'white', //x轴文本 阅读全文
posted @ 2020-04-24 10:32 土拨鼠1024 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 1开头(继续)表示临时响应并需要请求者继续执行操作的状态码 100 (继续) 请求者应当继续提出请求。服务器返回此代码表示已收到请求的第一部分,正在等待其余部分。 101 (切换协议) 请求者已要求服务器切换协议,服务器已确认并准备切换。 2开头 (请求成功)表示成功处理了请求的状态代码。 200 阅读全文
posted @ 2020-04-24 10:11 土拨鼠1024 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、window.location.search.slice(12,20); 2、function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.in 阅读全文
posted @ 2020-04-23 16:12 土拨鼠1024 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: /*input 输入框 Goole在自动填充时,背景颜色问题*/input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus, input:-webkit-autofill:active { tran 阅读全文
posted @ 2020-04-23 16:11 土拨鼠1024 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 方法一$ cnpm install -g create-react-app$ create-react-app my-app 方法二 npx create-react-app my-app npm start 启动开发服务器。 npm run build 将应用程序捆绑到静态文件中以供生产。 npm 阅读全文
posted @ 2020-04-23 16:09 土拨鼠1024 阅读(126) 评论(0) 推荐(0) 编辑
摘要: $ git clone <远程仓库的网址>$ git pull //拉取$ git status //查看本地仓库$ git add . //提交的文件所有$ git commit -m "注释" //提交到本地仓库$ git push //把本地仓库的提交推送到远程仓库 阅读全文
posted @ 2020-04-23 16:08 土拨鼠1024 阅读(115) 评论(0) 推荐(0) 编辑