05 2022 档案
摘要:九、用户页面 该模块作为学生作业,不讲解,仅供源码参考。 创建组件并配置路由 1、创建 views/user/index.vue <template> <div class="user-container">用户页面</div> </template> <script> export default
阅读全文
摘要:六、文章搜索 创建组件并配置路由 1、创建 src/views/search/index.vue <template> <div class="search-container">搜索页面</div> </template> <script> export default { name: "Sear
阅读全文
摘要:四、首页—文章列表 页面布局 头部导航栏 1、使用导航栏组件 2、在导航栏组件中插入按钮 文本 图标 3、样式调整 宽高 背景色 边框 文本大小 图标大小 <template> <div class="home-container"> <!-- 导航栏 --> <van-nav-bar class=
阅读全文
摘要:开发文档 - 黑马头条 src目录树 D:. │ App.vue │ main.js │ ├─api │ user.js │ ├─assets ├─components ├─router │ index.js │ ├─store │ index.js │ ├─styles │ icon.css │
阅读全文
摘要:开发文档 - 黑马头条 最新API接口 在线演示 http://toutiao.itheima.net/ 接口文档 http://toutiao.itheima.net/api.html 文件结构 D:. │ App.vue │ main.js │ ├─api │ user.js │ ├─asset
阅读全文
摘要:axios 入门 Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。 安装 使用 npm: $ npm install axios 使用 bower: $ bower install axios 使用 cdn: <script src="https://
阅读全文