会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
临岳少侠
博客园
首页
新随笔
联系
订阅
管理
2022年1月3日
「Nest」 大对象(大文件)管理接口
摘要: 正在施工...
阅读全文
posted @ 2022-01-03 15:44 临岳少侠
阅读(35)
评论(0)
推荐(0)
2021年6月13日
「Typescript」[Express] 使用ts封装express
摘要: gitee : https://gitee.com/TycIn/component_shop
阅读全文
posted @ 2021-06-13 02:24 临岳少侠
阅读(398)
评论(0)
推荐(0)
2020年12月5日
在使用js的异步操作时应尽量避免的问题
摘要: 1.避免使用异步函数的返回值,而应该在异步函数的回调中直接修改外部变量。 2.一些具有严格执行顺序的函数,应该使用promise嵌套调用,或者使用await关键字强制等待返回。 3.注意变量的空值检测。 4.在回调中避免使用this,如果需要使用,应该将this拷贝到函数中,并且函数不能是箭头函数的
阅读全文
posted @ 2020-12-05 14:11 临岳少侠
阅读(186)
评论(0)
推荐(0)
2020年12月3日
【微信小程序】组件:全配置轮播图
摘要: 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 临岳少侠
阅读(415)
评论(0)
推荐(0)
【微信小程序】在swiper-item使用wx:for时出现的问题
摘要: 代码如下: 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 临岳少侠
阅读(1138)
评论(0)
推荐(0)
2020年12月1日
微信小程序Page页面配置文件模板
摘要: { "navigationBarBackgroundColor":"HexColor 导航栏背景颜色", "navigationBarTextStyle":"string 导航栏标题颜色,仅支持 black / white", "navigationBarTitleText":"string 导航栏
阅读全文
posted @ 2020-12-01 23:37 临岳少侠
阅读(621)
评论(0)
推荐(0)
微信小程序App全局配置文件
摘要: { "entryPagePath":"入口路径", "pages":["页面1路径","页面2路径"], "window":{ "navigationBarBackgroundColor":"HexColor 导航栏背景颜色", "navigationBarTextStyle":"black/whi
阅读全文
posted @ 2020-12-01 23:20 临岳少侠
阅读(512)
评论(0)
推荐(0)
2020年11月24日
mybatis plus代码生成器
摘要: 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 临岳少侠
阅读(800)
评论(0)
推荐(0)
网站的内容安全策略(CSP)
摘要: 内容安全策略 (CSP) 是一个额外的安全层,用于检测并削弱某些特定类型的攻击,包括跨站脚本 (XSS) 和数据注入攻击等。...——https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP。 我们可以在页面的head部分使用meta标签设置CSP策
阅读全文
posted @ 2020-11-24 21:18 临岳少侠
阅读(952)
评论(0)
推荐(0)
javascript学习日记--eval、prompt
摘要: 1.eval函数 eval函数参数字符串当成一个js脚本来运行。 参数:脚本字符串 ! 如果将eval函数赋值给其他变量,再调用该变量可能会引起EvalError 2.prompt函数 prompt() 方法用于显示可提示用户进行输入的对话框。 参数:提示文本text,输入框默认值defalutTe
阅读全文
posted @ 2020-11-24 18:04 临岳少侠
阅读(115)
评论(0)
推荐(0)
下一页
公告