08 2018 档案

摘要:箭头函数表达式的语法比函数表达式更短,并且不绑定自己的this,arguments,super或 new.target。这些函数表达式最适合用于非方法函数,并且它们不能用作构造函数。 箭头函数和function的区别: 箭头函数体内的this对象,就是定义时所在的对象,而不是使用时所在的对象 箭头函 阅读全文
posted @ 2018-08-31 14:54 xxllj 阅读(4217) 评论(0) 推荐(0)
摘要:在编辑微信小程序的时候,遇到的坑,使用 <navigator url='/pages/logs/logs'>跳转</navigator>进行跳转失效 了,进行多次测试发现,当页面中的跳转路径与app.json中配置的tabBar 相重复时,页面中的跳转会失效,不知道微信团队为什这么做。 如果要跳转就 阅读全文
posted @ 2018-08-31 13:55 xxllj 阅读(1818) 评论(0) 推荐(0)
摘要:function colors(e){ var color1=e.substr(1,2); var color2=e.substr(3,2); var color3=e.substr(5,2); return 'rgba(' + zh(color1) + ',' + zh(color2) + ',' 阅读全文
posted @ 2018-08-01 16:14 xxllj 阅读(507) 评论(0) 推荐(0)