随笔都是学习笔记
随笔仅供参考,为避免笔记中可能出现的错误误导他人,请勿转载。
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 40 下一页
摘要: 需要创建的文件夹及文件: 一、utils下的httpUtils.js: import axios from 'axios'; import querystring from 'querystring'; const errorHandler = (status, info) => { switch( 阅读全文
posted @ 2022-11-15 14:16 时间完全不够用啊 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 新建组件(局部引入): <template> <div> <p>{{ msg }}</p> </div> </template> <script> import axios from 'axios'; import QueryString from 'qs'; export default { na 阅读全文
posted @ 2022-11-15 11:23 时间完全不够用啊 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 使用库之前肯定是先安装库:(tips:指定版本可以在后面加上如@8.4.4) cnpm install --save swiper 这种方式可以将库保存到 package.json 中: 然后就是使用: 首先是引入库: 然后是挂载: 然后是使用其标签: 查看效果: 这个库的功能可以实现滑动操作: 可 阅读全文
posted @ 2022-11-14 15:48 时间完全不够用啊 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Vue生命周期有四个阶段,八个函数: beforeCreate(){ console.log("beforeCreate:创建之前") }, created(){ console.log("created:创建完成") }, beforeMount(){ console.log("beforeMou 阅读全文
posted @ 2022-11-14 15:04 时间完全不够用啊 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 首先有两个组件: 父组件:App.vue 子组件:ComponentForOne.vue <template> <img alt="Vue logo" src="./assets/logo.png"> <!-- 下面使用组件:组件标签名 --> <ComponentForOne @onEvent=" 阅读全文
posted @ 2022-11-14 14:19 时间完全不够用啊 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 创建一个自定义组件: <template> <h1>Here is ComponentForOne!!</h1> <p>{{title}}</p> <p>age = {{age}}</p> <ul style="background-color:aqua"> <li v-for="(item,ind 阅读全文
posted @ 2022-11-14 13:59 时间完全不够用啊 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 一、组件 vue中的.vue文件可以简单理解为组件,放在components文件夹下,根组件就是App.vue: 二、使用components文件夹下自定义的组件步骤: 1、创建模板,组件一般模板为以下形式: 二、导出标识: 在 <script> 标签中编写 export default {} 来标 阅读全文
posted @ 2022-11-14 11:26 时间完全不够用啊 阅读(199) 评论(0) 推荐(0) 编辑
摘要: SpringBoot使用的 slf4j + logback: 官网文档:https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.logging.shutdown-hook 日志输出信息 阅读全文
posted @ 2022-11-08 16:19 时间完全不够用啊 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 创建两个Activity类页面和两个布局xml文件进行跳转操作: Activity页面设置: package com.example.noxdevpro; import androidx.appcompat.app.AppCompatActivity; import android.content. 阅读全文
posted @ 2022-10-26 16:02 时间完全不够用啊 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 新建Android 项目目录结构: 阅读全文
posted @ 2022-10-26 15:55 时间完全不够用啊 阅读(55) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 40 下一页