上一页 1 ··· 337 338 339 340 341 342 343 344 345 ··· 492 下一页
摘要: When we "Tab" into a input field, we want to select all the content, if we start typing, it should remove the existing content and add new content. We 阅读全文
posted @ 2017-07-26 01:55 Zhentiw 阅读(1057) 评论(0) 推荐(0)
摘要: You often use the same data in different ways across pages. This lesson walks you through setting up multiple pages, retrieving the same data, then di 阅读全文
posted @ 2017-07-25 21:25 Zhentiw 阅读(266) 评论(0) 推荐(0)
摘要: You can conditionally add classes to Vue.js templates using v-bind:class. This will help display the status of a todo as you add a Vuex action to patc 阅读全文
posted @ 2017-07-25 21:16 Zhentiw 阅读(407) 评论(0) 推荐(0)
摘要: You'll begin to notice as you build out your actions in Vuex, many of them will look quite similar. Creating a remove action looks almost the same as 阅读全文
posted @ 2017-07-25 21:07 Zhentiw 阅读(332) 评论(0) 推荐(0)
摘要: The default behavior of submitting an HTML form is to reload the page. You can use the Vue.js @submit.prevent syntax to avoid that behavior. Then wire 阅读全文
posted @ 2017-07-25 20:58 Zhentiw 阅读(1018) 评论(0) 推荐(0)
摘要: You can isolate parts of templates you want to re-use into components, but you can also reuse those components across pages using layouts. This lesson 阅读全文
posted @ 2017-07-25 20:33 Zhentiw 阅读(381) 评论(0) 推荐(0)
摘要: Because Nuxt renders pages on the server, you should use the nuxt-link components to navigate between pages. Each time a page loads, you can check if 阅读全文
posted @ 2017-07-24 20:12 Zhentiw 阅读(439) 评论(0) 推荐(0)
摘要: In a server-rendered application, if you attempt to load data before the page renders and the data fails to load, your application will not run unless 阅读全文
posted @ 2017-07-24 19:47 Zhentiw 阅读(294) 评论(0) 推荐(0)
摘要: You add array of todos to the store simply by adding them to the state defined in your store/index.js file. You can access the array of todos using ma 阅读全文
posted @ 2017-07-24 18:10 Zhentiw 阅读(236) 评论(0) 推荐(0)
摘要: You can easily add CSS libraries to Nuxt using yarn or npm to install them, then simply adding them to the nuxt.config.js so they're included in each 阅读全文
posted @ 2017-07-24 17:57 Zhentiw 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 337 338 339 340 341 342 343 344 345 ··· 492 下一页