2020年10月13日
摘要: <style type="text/css"> /* 设置图文不可复制 */ .nocopy { -webkit-user-select: none; -ms-user-select: none; -moz-user-select: none; -khtml-user-select: none; u 阅读全文
posted @ 2020-10-13 11:14 菜鸟成长日记lx 阅读(206) 评论(0) 推荐(0) 编辑
  2020年10月10日
摘要: //html部分 <div class="main_box"> <div class="box"></div> </div> 第一种: <style type="text/css"> .main_box { height: 50rem; width: 50rem; box-sizing: borde 阅读全文
posted @ 2020-10-10 11:02 菜鸟成长日记lx 阅读(428) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-10-10 10:00 菜鸟成长日记lx 阅读(122) 评论(0) 推荐(0) 编辑
  2020年10月9日
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-10-09 16:01 菜鸟成长日记lx 阅读(178) 评论(0) 推荐(0) 编辑
  2020年9月27日
摘要: //判断数据类型的方法let arr= [1,2,3]function getDataType(args) { let cc= Object.prototype.toString.call(args) // [object ...] return '数据类型是:'+ cc.replace(/^\[o 阅读全文
posted @ 2020-09-27 11:17 菜鸟成长日记lx 阅读(159) 评论(0) 推荐(0) 编辑
  2020年9月25日
摘要: $watch和watch属性都是监听值的变化的,是同一个作用,但是有两个不同写法。 用法一: //注意:这种方法是监听不到对象的变化的。 this.$watch((newVal,oldVal)=>{ }) 用法二: watch:{ xxx:(newVal,oldVal)=>{ // xxx是data 阅读全文
posted @ 2020-09-25 13:42 菜鸟成长日记lx 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: 生命周期一个可分为三种:应用生命周期,页面生命周期,组件生命周期 // 1.应用生命周期app.vue //onLaunch只能在app.vue onLaunch: function () { //登陆 全局变量 }, onShow: function () { }, onHide: functio 阅读全文
posted @ 2020-09-25 10:21 菜鸟成长日记lx 阅读(2887) 评论(0) 推荐(0) 编辑
  2020年9月18日
摘要: data() { return { //定义的两个变量 city: '', country: '' } }, computed: { //写成计算属性 address() { const { city, country } = this; return { city, country } } }, 阅读全文
posted @ 2020-09-18 15:29 菜鸟成长日记lx 阅读(3565) 评论(0) 推荐(0) 编辑
  2020年9月17日
摘要: //动态设置标题 uni.setNavigationBarTitle({ title:"标题" }) //跳转页面 url为跳转的页面 "?" 后面跟的是产地的参数 uni.navigateTo({ url: `/pages/ioPaymentsManage/ioMore?yearOrMonth=$ 阅读全文
posted @ 2020-09-17 17:24 菜鸟成长日记lx 阅读(207) 评论(0) 推荐(0) 编辑
  2020年9月14日
摘要: // 时间格式化函数 function timeFormat() { var time = new Date() var year = time.getFullYear() var month = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 阅读全文
posted @ 2020-09-14 10:05 菜鸟成长日记lx 阅读(431) 评论(0) 推荐(0) 编辑