??? ???? ??? ?? ?? ? ?? ????? ??????? ??? ??? ???? ???. ?? ???? ????? ?????? Vue? ??? ????? ??? ??? ??? ?? ??? ??? ?????? ???? ? ??? ? ? ????. ? ????? Vue? ???? ??? ??? ?????? ???? ??? ?????.
- ??? px ?? rem? ?????
??? ??????? px? ??? ???? ??? ???? ?? ??? ???? ?? ? ????. ??? ??? px ?? rem? ???? ?? ????. rem? ?? ??? ???? ? ?? ??? ???? ?? ??? ?? ???? ??? ??? ? ????.
?? html ??? ?? ??? ?? ??? 1/10? ?????. ?:
html{ font-size: calc(100vw / 10); }
??? ?? ?? ??? 375px? ??? ?? ?? ??? 37.5px? ?????. . ?? ?????? rem? ??? ??? ? ????. ?:
.container{ width: 7.5rem; // 相當于屏幕寬度的75% font-size: 0.14rem; // 相當于14px }
- Flexbox ???? ??
Flexbox ????? ??? ??? ?? ?? ? ?? ??? ???? ?????. Vue ??????? Vue? ?? ?? ??? v-layout ? v-flex? ???? Flexbox ????? ??? ? ????.
?? npm ??? ?? ??? ? ?? Vuetify? ????? ?????.
npm install vuetify --save
?? ?? main.js? Vuetify? ???? ?????.
import Vue from 'vue' import Vuetify from 'vuetify' import 'vuetify/dist/vuetify.min.css' Vue.use(Vuetify)
????? Vue?? v-layout ? v-flex ?? ??? ?????. Flexbox ????? ?????. ?:
<template> <v-layout row wrap> <v-flex xs12 sm6 md4 lg3>Item 1</v-flex> <v-flex xs12 sm6 md4 lg3>Item 2</v-flex> <<v-flex xs12 sm6 md4 lg3>Item 3</v-flex> <v-flex xs12 sm6 md4 lg3>Item 4</v-flex> </v-layout> </template> <script> export default { name: 'MyComponent', components: { VLayout, VFlex } } </script>
? ??? ?? ?? ??? 4? ??? ?? ?? ?? ??? ????? ?? ?????.
- Vue? ?? ?? ??
??? ??????? ?? ??? ??? ??? ?? ???? ? ????. Vue? ??? ??? ???????? ??? ? ?? ?? ??? ?? ?? ?? ?? v-transition ? v-animation? ?????.
?? npm ??? ?? ??? ? ?? animate.css ?????? ????? ?????.
npm install animate.css --save
?? ?? Vue ?? ???? v-transition? ???? ?? ??? ????. ?:
<template> <div> <transition :name="transitionName"> <div v-if="show" class="animated" ref="box"></div> </transition> <button @click="toggle">Toggle</button> </div> </template> <script> export default { name: 'MyComponent', data() { return { show: false, transitionName: 'fade' } }, methods: { toggle() { this.show = !this.show } } } </script> <style> .animated { animation-duration: 1s; } .fade-enter-active, .fade-leave-active { transition: opacity 1s; } .fade-enter, .fade-leave-to { opacity: 0; } </style>
? ??? ?? ??? ???? ??? ? ? ??? ?? ?? ??? ??? ?????.
- vue-router? ???? ??? ?? ??
??? ??????? ??? ??? ?? ??? ???? ???. Vue? ??? ?? ? ?? ???? ???? ?? vue-router? ?????.
?? npm ??? ?? ??? ? ?? vue-router? ????? ?????.
npm install vue-router --save
?? ?? main.js?? ??? ???? vue-router? ?????.
import Vue from 'vue' import VueRouter from 'vue-router' import Home from './views/Home.vue' Vue.use(VueRouter) const router = new VueRouter({ routes: [ { path: '/', name: 'home', component: Home }, { path: '/about', name: 'about', component: () => import(/* webpackChunkName: "about" */ './views/About.vue') } ] }) new Vue({ router }).$mount('#app')
????? router-link ?? ??? ?????. Vue ?? ???? ??? ?????. ?:
<template> <div> <router-link to="/">Home</router-link> <router-link to="/about">About</router-link> </div> </template>
? ??? ????? ? ? ?? ???? ???? ?? ??? ??? ???? ?????.
??
? ???? Vue? ???? ??? ??? ?????? ???? ??? ?????. ?????? px ?? rem? ??? ????, Flexbox ????? ????, Vue? ?? ??? ????, vue-router? ???? ??? ??? ???? ?? ?????. ??? ??? ??? ??? ?????? ???? ??? ??? ?? ???? ???? ??? ? ??? ? ? ????.
? ??? Vue? ??? ??? ?????? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? Python ? ?? ????? ????? ?? ??? ?????. 1. Django ?? Flask? ?? ??? ??? ??? ??????. 2. ??????? ???? sqlalchemy? ?? ORM? ??????. 3. ??? ??? ???? Vue ?? React? ??????. 4. ???? ???? Pytest ?? UnitTest? ??????. 5. ?? ????? ???? Docker ? Heroku ?? AWS? ?? ???? ??????. ??? ??? ?? ???? ???? ? ?? ????? ?? ? ? ????.

??? ?? ??? ???? ??? URL? ?? ??? ???? ????. Vuerouter ? Reactrouter? URL ??? ?? ?? ?? ??????? ?? ???? ??? ??? ?????. ?? ???? ??? ?????. 1. ?? ???, ?? ?? ??? ?? ?? ?? ??? ?????. 2. ?? ???, URL ?? ??? ?? ?? ?? ?? ??; 3. Route Guard, ?? ?? ??? ?? ??? ?? ?? ??.

??? transforminvue3aimedtosimplify handlingreactivedatabyautomicallytrackingandmaningreactivity withoutequiringmanualref () ?? valueusage.itsivingtoreduceboilerplateandimprovecodeReadabilitabledevariableletandsconstasmonclicallicallicallicallicallicallicallicallicallicallicallicalliceLerplateNclateMconsconclicallicallicallicallicallicallicallicallicalliceLerplateN

vue.js? ?? ?? ???? React ?? ?? ??? ??? ????. 1) vue.js? ??? ??? ?? API? ???? ?? React? JSX ? ?? ?? ??? ?????. 2) vue.js? ?? ? ???? ???? React? ??? ???? ?? DOM? ?????. 3) vue.js? ?? ???? ??? ???? ?? React? ? ?? ??? ??? ?????.

??? ? ??? invueAppsareprimally handledusingthevuei18nplugin.1.installvue-i18nvianpmoryarn.2.createlocalejsonfiles (? : en.json, es.json) fortranslationMessages.3

vue.js? ?? ????? ?? ? ? ?? .defineProperty? ?? ??? ?? ?? ?? ?????? ?????? ????. ???? ??? ????. 1. VUE.SET ???? ???? ?? ???? ?????. 2. ?? ??? ? ??????. 3. VUE? ? ?? ? ???? ??? ???? ??? ??????.

?? : keyAttributeWithv-forInvueisSenderferperferformanCanceAndCorrectBehavior.first, ithelpsVuetrackeachelementementEficiledullyBirtlyBirtlyDiffingAlgorithMtoIndifyandUpdateOnlyWhat'Snecessary.second, itpreservescomponents, ensuri

VUE? ?? ?? ? ??? ?? ??? ??? ????? ?? : 1. V-Once ???? ???? ?? ???? ???? ???? ????? ????. 2. ?? ???? ???? Vue-Virtual-Scroller ????? ??? ?? ??? ??? ?? ? ??????. 3. ?? ???? ??? ?? Keep-Alive ?? V-Once? ?? ?? ?? ??; 4. ?? ? ?? ? ???? ???? ?? ? ??? ????? ? ??? ??? ????. 5. V-FOR?? ?? ? ??, ???? ??? ??? ??? ?? ?? ??? ???? ?? ??? ?? ? ?? ??? ?????. ??? ??? ?? ???? ????? ???? ? ????.
