- 博客(167)
- 资源 (1)
- 收藏
- 关注
原创 css 两条尖线
width: 42rpx; height: 4rpx; background: linear-gradient(270deg, #451f1f 0%, #451f1f00 100%);
2022-10-05 14:41:30 183
原创 hbuilder代码提示突然失效
1.重新构建项目索引【选中项目文件】=》【右键】=》【重新构建项目索引】2.检查代码语法错误【切换至出问题的文件】=》【代码空白处右键】=》【验证本文档语法】ps:可能第一次提示需要安装插件,安装插件后再重复一次此操作,根据Hbuilder提示找出错误的语法位置,修改完即可。...
2022-06-08 09:17:43 2474 1
原创 vue3.0去除 eslint 校验
module.exports = {root: true,env: {node: true},extends: [‘plugin:vue/vue3-essential’,// ‘@vue/standard’],parserOptions: {parser: ‘babel-eslint’},rules: {‘no-console’: process.env.NODE_ENV === ‘production’ ? ‘warn’ : ‘off’,‘no-debugger’: proce
2022-06-01 08:32:57 606
原创 uniapp小程序data数据不更新解决方法
data() { return { list: [{ name: '小明', age: 18 },{ name: '小美', age: 12 }], text: '我是未修改的字符串值' }}// 第一种:修改数组中的某一个属性// 修改列表中小美的数据(此对象所有的属性都要重新赋值)this.$set(this.list, 1, { name: '小美', age: 18})// 第二种:单独修改列表中小美的年龄为18岁(不影响其它属性)t
2022-05-09 10:27:53 3223
原创 hbuilder常用
快捷键{ "key": "ctrl+alt+d", "command": "editor.action.revealInProjectExplorer"}代码块"log": { "prefix": "log", "body": [ "this.log('打印内容',$1)" ], "triggerAssist": false, "description": "Log output to console twice"}
2022-04-17 10:23:20 2248
原创 vuex学习
![在这里插入图片描述](https://img-blog.csdnimg.cn/9cc94897a17f4be88231104cef53530b.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAd3hfamlhd2VyaQ==,size_20,color_FFFFFF,t_70,g_se,x_16commit 只能触发 mutation...
2022-04-12 23:40:32 50
原创 css等腰梯形图片
.con{width: 240px;height: 250px;background-color: #009688;transform-origin: bottom;transform: skew(8deg, 0deg);-ms-transform: skew(8deg, 0deg);-moz-transform: skew(8deg, 0deg);-webkit-transform: skew(8deg, 0deg);-o-transform: skew(8deg, 0deg);bac
2022-03-02 20:41:37 258
原创 uniapp 动态设置 style background-img
:style="{ backgroundImage:‘url(’+img+’)’}
2022-03-02 20:36:58 1324
原创 css给最后几个盒子添加样式最后的元素添加样式
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> * { padding: 0; margin: 0; } .div-container { wi
2022-01-28 15:29:15 1225
原创 小程序中setdata 的参数
也就是说在更改setData下的变量时,直接写key名就可以了的,不用写this.data.属性,如下所示```this.setData({ // this.data.name: "aa" // 这样写是会报错的 name: "aa" // 正确的写法})handleChangeName() { console.log("name开始的数据", this.data.name); // itclanCoder this.setData({
2022-01-15 09:25:23 540
原创 获取小程序高度
wx.getSystemInfo({ success: function (res) { // 获取可使用窗口宽度 let clientHeight = res.windowHeight; // 获取可使用窗口高度 let clientWidth = res.windowWidth; // 算出比例 let ratio = 750 / clientWidth; // 算出高度(单位rpx) let height = clientHeight
2022-01-06 10:07:47 505
原创 webstorm快捷键
下面是Webstorm的一些常用快捷键:1. ctrl + shift + n: 打开工程中的文件,目的是打开当前工程下任意目录的文件。2. ctrl + j: 输出模板3. ctrl + b: 跳到变量申明处4. ctrl + alt + T: 围绕包裹代码(包括zencoding的Wrap with Abbreviation)5. ctrl + []: 匹配 {}[]6. ctrl + F12: 可以显示当前文件的结构7. ctrl + x: 剪切(删除)行,不选中,直接剪切整个行,如果选
2021-12-15 11:27:56 1429
原创 juqery按钮无效的方法
KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲demo").on('clic…(this).html());});// 或者KaTeX parse error: Expected '}', got 'EOF' at end of input: …n(){ alert((this).html());});
2021-11-25 15:53:18 41
原创 js获取当前时间戳以及前一天时间戳
js获取当前时间戳以及前一天时间戳js获取当前时间戳以及前一天时间戳(毫秒)var timestamp = (new Date()).getTime();console.log(timestamp);//打印当前时间戳console.log(timestamp-246060*1000);//当前时间戳(毫秒) - 1天毫秒数 = 前一天时间戳...
2021-11-14 14:22:17 2648
原创 /\s+/g 匹配空格
1、整体为如果cookie以一个或多个空格开始,替换全部空格为空,或者,如果cookie以一个或多个空格结束,替换全部空格为空。var cookie = "this is a cookie value ";cookie = cookie.replace(/^\s+|\s+$/g, ‘’);2、\s: space, 空格3、+: 一个或多个4、^: 开始,^\s,以空格开始————————————————...
2021-11-12 11:08:37 505
原创 合并数组用于数组对象添加另外一个数组
let cat = [{ name: "全部", id: "666"}, { name: "盒装", id: "355"}, { name: "城限", id: "356"}, { name: "独家", id: "357"}, { name: "实景", id: "358"}];var goods_list = [{ name: "全部", id: "666"}, { name: "盒装", id: "355"}, { name
2021-11-09 09:45:37 186
原创 长列表删除
var ctx = createRecycleContext({ id: 'recycleId', dataKey: 'list', page: this, itemSize: { // 这个参数也可以直接传下面定义的this.itemSizeFunc函数 width: 350, height: 130 }, useInPage: false, topValue: 70})ctx.destroy()...
2021-11-08 16:03:34 47
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人