上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: Vuex StoreLoading Image From Assets Folder下载一张图片到static文件夹内:修改assets/styles/main.css:body { background-color: azure;}div.jumbotron { border-radius: 0; background-image: url("/cbimage.jpg"); height... 阅读全文
posted @ 2020-05-13 22:14 dzkjz 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Making Api Request The Vue Way新建pages/posts/index.vue文件: Making API request - the Vue way {{post.title}} 或者: Making API request - the Vue way {{p... 阅读全文
posted @ 2020-05-13 10:11 dzkjz 阅读(46) 评论(0) 推荐(0) 编辑
摘要: layouts/default中的nuxt标签作为nuxt的插槽,pages/index.vue会渲染至此。新建pages/users.vueroute自动处理好了【必须有执行npm run dev】,打开 http://localhost:3000/users 即可看到页面结果。view page source因为:.nuxt/router.js中已经自动生成好了》》》Creating Nest... 阅读全文
posted @ 2020-05-12 14:36 dzkjz 阅读(41) 评论(0) 推荐(0) 编辑
摘要: Nuxt Child Component新建pages/users.vue文件,即与users文件夹相同层级且与users文件夹同名。代码如下:注意nuxt-child You can see me in all users related pages 结构如下:users文件夹中所有的与users相关的页面都在nuxt-child中渲染。打开:http://localhos... 阅读全文
posted @ 2020-05-12 14:32 dzkjz 阅读(51) 评论(0) 推荐(0) 编辑
摘要: layouts/default中的nuxt标签作为nuxt的插槽,pages/index.vue会渲染至此。新建pages/users.vueroute自动处理好了【必须有执行npm run dev】,打开 http://localhost:3000/users 即可看到页面结果。view page source因为:.nuxt/router.js中已经自动生成好了》》》Creating Nest... 阅读全文
posted @ 2020-05-12 00:29 dzkjz 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 安装Node.js,然后执行:npm install -g @vue-cli 安装vue-cli安装Nuxt.js【看官方文档】https://nuxtjs.org/guide/installation/新建一个文件夹:D:\nuxt ,文件夹内右键选择Terminal打开命令窗口:执行:npx create-nuxt-app learning然后:UI暂时不选择暂时不选择axios 都暂时不选择... 阅读全文
posted @ 2020-05-11 23:13 dzkjz 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Main Topics:从上到下,从左至右。SSR->Nuxt->Deploy->Backend->Auth->…->ValidationNuxt.js:Vue.js基础之上的。 SPA page source一般是这样:所有的content在page source中是看不到的,搜索引擎爬取网站的时候,爬取的数据只有一个div#app,有的会缓一段时间等待render,对seo都不友好。其次,ro... 阅读全文
posted @ 2020-05-11 22:00 dzkjz 阅读(24) 评论(0) 推荐(0) 编辑
摘要: call(UserSeeder::class);// $this->call(QuestionTableSeeder::class); factory(\App\User::class, 3)->create()->each(function ($user) { $user->questions()->saveMany( ... 阅读全文
posted @ 2020-05-10 14:37 dzkjz 阅读(110) 评论(0) 推荐(0) 编辑
摘要: D:\laragon\www\laravel-qa>git branch * masterD:\laragon\www\laravel-qa>git checkout -b lesson-2 Switched to a new branch 'lesson-2'D:\laragon\www\laravel-qa>git statusOn branch lesson-2Changes not sta... 阅读全文
posted @ 2020-05-10 13:55 dzkjz 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 官方:https://www.howtographql.com/basics/0-introduction/官方:https://graphql.org/learn/参考:Laravel API 系列教程(四):基于 GraphQL 构建 Laravel API —— 基本使用篇Laravel API 系列教程(五):基于 GraphQL 构建 Laravel API —— 高级使用篇https:... 阅读全文
posted @ 2020-04-28 20:00 dzkjz 阅读(595) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页