摘要: <a id="links" href='#' class="container" @click="btn2"></a> btn2() { /* appUrl = 'itms-apps://itunes.apple.com/cn/app/id1613692514?mt=8'; // XXXX为对应的A 阅读全文
posted @ 2022-05-05 15:59 无泪的遗憾、愿我能 阅读(710) 评论(0) 推荐(0)
摘要: 开个玩笑哈哈哈 我希望 我每天的学习,都能够让我看的更远, 我每天的努力,都能够让我走得更远 二零二二年三月二十九书 致敬过往 不忘初心 砥砺前行 至此 阅读全文
posted @ 2022-04-29 18:19 无泪的遗憾、愿我能 阅读(120) 评论(0) 推荐(0)
摘要: React中的constructor有两个作用: 通过给 this.state 赋值对象来初始化内部state。 为事件处理函数绑定实例 也就是绑定this 但是都可以通过赋值语句加箭头函数和 给类的实例对象加个state赋值一个对象也就是加个属性解决。 但是如果希望在consteuctor中通过t 阅读全文
posted @ 2022-04-29 10:20 无泪的遗憾、愿我能 阅读(79) 评论(0) 推荐(0)
摘要: 连续解构赋值 let obj = {a:{b:{c:1}}} let { a:{b:{ c }} } = obj 连续解构赋值加重命名 let { a:{ b:{ c:data } } } = obj console data = 1 let arr = [1,2,4,5,2,6,] console 阅读全文
posted @ 2022-04-28 18:09 无泪的遗憾、愿我能 阅读(86) 评论(0) 推荐(0)
摘要: 1,接口返回url形式 使用window.location.href跳转支付 2,接口返回form表单形式 uni.request({ url: '接口地址', method: 'POST', success: (res)=>{ // 将接口返回的form表单显示到页面 document.query 阅读全文
posted @ 2022-04-28 08:51 无泪的遗憾、愿我能 阅读(235) 评论(0) 推荐(0)
摘要: 在使用text-overflow:ellipsis时发现,无论放在哪里都不生效。后面发现该属性要与其他两个属性结合使用:text-overflow:ellipsis;white-space:nowrap;overflow:hidden;这里的white-space手脚设置文本不换行,Overflow 阅读全文
posted @ 2022-04-23 17:18 无泪的遗憾、愿我能 阅读(51) 评论(0) 推荐(0)
摘要: HTTP 400 – 请求无效HTTP 401.1 – 未授权:登录失败HTTP 401.2 – 未授权:服务器配置问题导致登录失败HTTP 401.3 – ACL 禁止访问资源HTTP 401.4 – 未授权:授权被筛选器拒绝HTTP 401.5 – 未授权:ISAPI 或 CGI 授权失败 HT 阅读全文
posted @ 2022-04-16 10:56 无泪的遗憾、愿我能 阅读(70) 评论(0) 推荐(0)
摘要: 加个.native @click.native="" 阅读全文
posted @ 2022-04-11 13:21 无泪的遗憾、愿我能 阅读(111) 评论(0) 推荐(0)
摘要: 父元素关闭弹框事件: @click=“closeModalLight”子元素点击事件:@click.stop=’!closeModalLight’ 阅读全文
posted @ 2022-04-11 13:19 无泪的遗憾、愿我能 阅读(917) 评论(0) 推荐(0)
摘要: //重写push|replace 方法 let originPush = VueRouter.prototype.push; VueRouter.prototype.push = function (location,resolve,reject){ if (resolve && reject){ 阅读全文
posted @ 2022-04-06 14:02 无泪的遗憾、愿我能 阅读(87) 评论(0) 推荐(0)
浏览器标题切换
浏览器标题切换end