摘要: 1.传递数据的postMessage.js: var userData =[{ "id":0, "name":"张三", "age":"12", },{ "id":1, "name":"张四", "age":"13", },{ "id":2, "name":"张五", "age":"14", }]; 阅读全文
posted @ 2020-04-23 16:40 世界我快乐 阅读(2970) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>盒模型</title> <style> div{ height: 200px; width: 200px; background: #6A5ACD; padding: 20px; 阅读全文
posted @ 2020-04-15 16:50 世界我快乐 阅读(297) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>多行文本省略号显示</title> <style> /* line-clamp不在css标准里面所有这几个属性必须配合使用才有效果 */ /* 1.可以设置多行显示然后省略号 */ 阅读全文
posted @ 2020-04-15 16:00 世界我快乐 阅读(846) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>垂直居中</title> <style> /* 方法5 */ .outer{ position: relative; height: 300px; width: 300px; di 阅读全文
posted @ 2020-04-15 15:10 世界我快乐 阅读(157) 评论(0) 推荐(0)
摘要: 1.方法: const baseUrl = 'https://api.it120.cc'; // 配置接口请求的公共方法 const http =({url ='',param ={},method='',header={}}={}) =>{ wx.showLoading({ title: '请求中 阅读全文
posted @ 2020-03-24 16:24 世界我快乐 阅读(1050) 评论(0) 推荐(0)
摘要: 1. H5必知必会之像素级还原设计稿 https://mp.weixin.qq.com/s/NgGd9zSm6NEaF5Jxp5WBKg 2. 前端基础知识概述 -- 移动端开发的屏幕、图像、字体与布局的兼容适配 该文详细解读响应式和自适应的区别以及像素,独立像素,物理像素等含义和区别;几种适配方式 阅读全文
posted @ 2020-03-11 15:54 世界我快乐 阅读(173) 评论(0) 推荐(0)
摘要: 现在vue或者react 一般都引入的有moment.js,官网:http://momentjs.cn/ 常用的几个记录下: 中文显示设置:在入口文件app.vue文件引入 import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; i 阅读全文
posted @ 2020-01-08 10:39 世界我快乐 阅读(1065) 评论(0) 推荐(0)
摘要: 1.文件流下载文件: /** * @description: * @param {type} fileName-文件名 suffix-后缀名 * @return: */ export function axiosPostExport (url, data, fileName, suffix='.xl 阅读全文
posted @ 2020-01-07 16:42 世界我快乐 阅读(13247) 评论(2) 推荐(0)
摘要: 根据API看出两点: 1.小程序官方建议设计稿最好iphone6大小设计 2.设计稿一般是px的单位所以用右侧的px换算成rpx的公式例如:iphone5的设计稿 标的宽度是200px 那前端实现的宽度就是200*2.34=468rpx,同理处理iphone6和plus,当然在实际项目中设计师设计的 阅读全文
posted @ 2020-01-07 16:31 世界我快乐 阅读(1277) 评论(0) 推荐(0)
摘要: 1.实现图 2.代码实现 阅读全文
posted @ 2019-12-30 17:10 世界我快乐 阅读(873) 评论(0) 推荐(0)