摘要: 在app.js文件里进行编写 onLoad发送异步请求来初始化页面数据 阅读全文
posted @ 2021-08-05 16:40 YuyuFishSmile 阅读(40) 评论(0) 推荐(0)
摘要: 新建一个文件夹components 右键文件夹新建组件 在配置文件中,代表为组件,也可以嵌套其他组件 组件的使用在页面中的配置文件中添加组件键值对 之后再到wxml文件中添加组件名(键)的标签 父向子组件传递数据,通过组件标签传递 子组件向父组件传递数据 bind+事件名 observers类似于v 阅读全文
posted @ 2021-08-04 16:39 YuyuFishSmile 阅读(56) 评论(0) 推荐(0)
摘要: view:代理div标签 text:文本标签span 只可嵌套text,长按文字可以复制(小程序中只有这标签支持),可以对空格 回车进行编码 需要加上属性selectable,长按复制,不写布尔默认为true 加上decode可以识别编码,例如 图片标签image 默认宽高为320*240 navi 阅读全文
posted @ 2021-08-02 15:39 YuyuFishSmile 阅读(389) 评论(0) 推荐(0)
摘要: rpx小程序中的特有单位,可以根据屏幕的宽度进行自适应750rpx = 375px 1px = 2rpx 1px = 750rpx/page CSS和WXSS中可以通过calc来进行运算 view{ width: calc(750rpx * 100 / 375); height: 200rpx; b 阅读全文
posted @ 2021-08-02 15:08 YuyuFishSmile 阅读(120) 评论(0) 推荐(0)
摘要: bind..... 绑定输入事件:bindinput <input type="text" bindinput="showdata"/> 微信小程序中的赋值不可以直接this.data的形式 this.setData({ num:e.detail.value }) 绑定点击事件(手机上):bindt 阅读全文
posted @ 2021-08-02 14:53 YuyuFishSmile 阅读(171) 评论(0) 推荐(0)
摘要: 1.git clone 项目地址http 2.git add * 3.git commit -m 自己取名字 4.git pull origin branchname --allow-unrelated-histories 5.git push -u origin master 阅读全文
posted @ 2021-07-13 20:49 YuyuFishSmile 阅读(25) 评论(0) 推荐(0)
摘要: 通过application类中的main方法里面的run方法 @SpringBootApplication @ServletComponentScan(basePackages = "com.sp") //可以自动将写的servlet扫描进去 配置扫描的包 @MapperScan("com.sp.m 阅读全文
posted @ 2021-07-02 23:30 YuyuFishSmile 阅读(200) 评论(0) 推荐(0)
摘要: 编写引导类注意要标明注解 @SpringBootApplication SpringApplication.run(BootWeb01Application.class, args); 再编写main方法的时候使用run方法 起步依赖spring-boot-starter-parent 父工程,主要 阅读全文
posted @ 2021-07-02 21:06 YuyuFishSmile 阅读(68) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> spring-boot-autoconfigu 阅读全文
posted @ 2021-07-02 11:11 YuyuFishSmile 阅读(63) 评论(0) 推荐(0)
摘要: 引入Mybatis-plus <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.3.1</version> </dependency 阅读全文
posted @ 2021-07-01 23:51 YuyuFishSmile 阅读(85) 评论(0) 推荐(0)