摘要: 正在施工... 阅读全文
posted @ 2022-01-03 15:44 临岳少侠 阅读(26) 评论(0) 推荐(0) 编辑
摘要: gitee : https://gitee.com/TycIn/component_shop 阅读全文
posted @ 2021-06-13 02:24 临岳少侠 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1.避免使用异步函数的返回值,而应该在异步函数的回调中直接修改外部变量。 2.一些具有严格执行顺序的函数,应该使用promise嵌套调用,或者使用await关键字强制等待返回。 3.注意变量的空值检测。 4.在回调中避免使用this,如果需要使用,应该将this拷贝到函数中,并且函数不能是箭头函数的 阅读全文
posted @ 2020-12-05 14:11 临岳少侠 阅读(179) 评论(0) 推荐(0) 编辑
摘要: swiper.wxml: <!--components/swiper/swiper.wxml--> <view class="swiper_view" style="{{swiper_view_style}}"> <swiper class="swiper" style="{{swiper_styl 阅读全文
posted @ 2020-12-03 14:44 临岳少侠 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 代码如下: wxml: <!--pages/mall/mall.wxml--> <view class="contianer"> <view class="swiper"> <swiper display-multiple-items="{{swiper_pictures.length}}" ind 阅读全文
posted @ 2020-12-03 10:12 临岳少侠 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: { "navigationBarBackgroundColor":"HexColor 导航栏背景颜色", "navigationBarTextStyle":"string 导航栏标题颜色,仅支持 black / white", "navigationBarTitleText":"string 导航栏 阅读全文
posted @ 2020-12-01 23:37 临岳少侠 阅读(583) 评论(0) 推荐(0) 编辑
摘要: { "entryPagePath":"入口路径", "pages":["页面1路径","页面2路径"], "window":{ "navigationBarBackgroundColor":"HexColor 导航栏背景颜色", "navigationBarTextStyle":"black/whi 阅读全文
posted @ 2020-12-01 23:20 临岳少侠 阅读(466) 评论(0) 推荐(0) 编辑
摘要: package com.tycin.blog.generator;import com.baomidou.mybatisplus.annotation.DbType;import com.baomidou.mybatisplus.annotation.IdType;import com.baomid 阅读全文
posted @ 2020-11-24 23:02 临岳少侠 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 内容安全策略 (CSP) 是一个额外的安全层,用于检测并削弱某些特定类型的攻击,包括跨站脚本 (XSS) 和数据注入攻击等。...——https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP。 我们可以在页面的head部分使用meta标签设置CSP策 阅读全文
posted @ 2020-11-24 21:18 临岳少侠 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 1.eval函数 eval函数参数字符串当成一个js脚本来运行。 参数:脚本字符串 ! 如果将eval函数赋值给其他变量,再调用该变量可能会引起EvalError 2.prompt函数 prompt() 方法用于显示可提示用户进行输入的对话框。 参数:提示文本text,输入框默认值defalutTe 阅读全文
posted @ 2020-11-24 18:04 临岳少侠 阅读(99) 评论(0) 推荐(0) 编辑