国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ? ????? JS ???? vue2?? ??? ?? ?? ?? ???? ???? ??

vue2?? ??? ?? ?? ?? ???? ???? ??

Jun 23, 2018 pm 05:58 PM
loading vue2 ??? ??

? ???? ?? ??? ?? ????? ?? ?????? ???? ?? vue2? ?????. ?? ?? ???? ??? ? ????.

???? ??????? gif? ??? ? ??? ??? ???? ?? ??? ????. ???? ??? ? ???? ??? ? ?????. ?? ???? ????? ???? axios? js ???? ???? ???. ?? ?? ? ???? app.vue? ???? ???. ??? ????:

<template>
 <p id="app">
 <loading v-show="fetchLoading"></loading>
 <router-view></router-view>
 </p>
</template>

<script>
 import { mapGetters } from &#39;vuex&#39;;
 import Loading from &#39;./components/common/loading&#39;;

 export default {
 name: &#39;app&#39;,
 data() {
 return {
 }
 },
 computed: {
 ...mapGetters([
 &#39;fetchLoading&#39;,
 ]),
 },
 components: {
 Loading,
 }
 }
</script>

<style>
 #app{
 width: 100%;
 height: 100%;
 }
</style>

??? fetchLoading? vuex? ??? ?????. store/modules/common.js?? ?? ??? ?????.

/* 此js文件用于存儲(chǔ)公用的vuex狀態(tài) */
import api from &#39;./../../fetch/api&#39;
import * as types from &#39;./../types.js&#39;
const state = {
 // 請求數(shù)據(jù)時(shí)加載狀態(tài)loading
 fetchLoading: false
}
const getters = {
 // 請求數(shù)據(jù)時(shí)加載狀態(tài)
 fetchLoading: state => state.fetchLoading
}
const actions = {
 // 請求數(shù)據(jù)時(shí)狀態(tài)loading
 FETCH_LOADING({
 commit
 }, res) {
 commit(types.FETCH_LOADING, res)
 },
}
const mutations = {
 // 請求數(shù)據(jù)時(shí)loading
 [types.FETCH_LOADING] (state, res) {
 state.fetchLoading = res
 }
}

?? ?? ??? ??? ????.

<template>
 <p class="loading">
 <img src="./../../assets/main/running.gif" alt="">
 </p>
</template>

<script>
 export default {
 name: &#39;loading&#39;,
 data () {
 return {}
 },
 }
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
 .loading{
 position: fixed;
 top:0;
 left:0;
 z-index:121;
 width: 100%;
 height: 100%;
 background: rgba(0,0,0,0.3);
 display: table-cell;
 vertical-align: middle;
 text-align: center;
 }
 .loading img{
 margin:5rem auto;
 }
</style>

????? fetch/api.js? ???? axios? ?? ?? ???? ?????. ??? ????

// axios的請求時(shí)間
let axiosDate = new Date()
export function fetch (url, params) {
 return new Promise((resolve, reject) => {
 axios.post(url, params)
 .then(response => {
 // 關(guān)閉 loading圖片消失
 let oDate = new Date()
 let time = oDate.getTime() - axiosDate.getTime()
 if (time < 500) time = 500
 setTimeout(() => {
  store.dispatch(&#39;FETCH_LOADING&#39;, false)
 }, time)
 resolve(response.data)
 })
 .catch((error) => {
 // 關(guān)閉 loading圖片消失
 store.dispatch(&#39;FETCH_LOADING&#39;, false)
 axiosDate = new Date()
 reject(error)
 })
 })
}
export default {
 // 組件中公共頁面請求函數(shù)
 commonApi (url, params) {
 if(stringQuery(window.location.href)) {
 store.dispatch(&#39;FETCH_LOADING&#39;, true);
 }
 axiosDate = new Date();
 return fetch(url, params);
 }
}

?????. ????? ???? ???? gif ???? ?????? ???? ???? ?????.

vue.js ?? ????? ??? ?? vue.js ???? ?? ????? Vue.js ????? ???? ?? ????? ???? ?????.

? ?? Vue ?? ????? ??? ?? ?? "Vue Practical Tutorial"? ?????.

? ??? ?? ???? ?? ??? ?????. ??? ??? ?? ????.

?? ??:

Angular5? ???? ?? ? ??? ?? ??

vuex?? ?? ?? ???? ???? ??

jQuery? ???? animate.css ???(??? ????)

vue- cli ?? ??(??? ????)

? ??? vue2?? ??? ?? ?? ?? ???? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

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

???

??? ??

??? ????
1600
29
PHP ????
1502
276
???
vue2? vue3? ?????? ?? ??? ???? ?????? vue2? vue3? ?????? ?? ??? ???? ?????? May 16, 2023 pm 09:40 PM

vue2? vue3? ?????? ?? ?? ?? ?????? ?? vue2? ?? ?? beforeCreate=>created=>beforeMount=>mounted=>beforeUpdate=>updated=>beforeDestroy=>destroyed vue3? ?? ?? setup=>onBeforeMount= >onMounted=> onBeforeUpdate=>onUpdated=>onBeforeUnmount=&g

Vue?? ??? ?? ??: Axios ?? Fetch? Vue?? ??? ?? ??: Axios ?? Fetch? Jul 17, 2023 pm 06:30 PM

Vue?? ??? ?? ??: AxiosorFetch? Vue ???? ??? ??? ???? ?? ?? ???? ?????. ??? ??? ??? ??? ???? ?? ???? ? ?????. Vue?? ?? ???? ? ?? ??? Axios? Fetch???. ? ????? ? ??? ???? ???? ???? ? ??? ?? ? ?? ?? ??? ?????. Axios? ????? Node.js?? ???? Promise ?? HTTP ????????.

Vue2 diff ????? ??? ?????. (??? ??? ??? ???? ???? ????.) Vue2 diff ????? ??? ?????. (??? ??? ??? ???? ???? ????.) Mar 17, 2023 pm 08:23 PM

diff ????? ??? ??? ?? ??? ???? ???? ??????, ??? ???? ???? ??? ??? ????. ???? diff ????? ?? ??? ?? ???? ?? ?? vue2? diff ????? ?? ?? ??? ??? ????. ??? ?? ????!

Vue?? ?? ?? ??? ???? ?? Vue?? ?? ?? ??? ???? ?? Jun 11, 2023 am 09:05 AM

??? ?? ????? ???? ? ???? ?? ???? ?? ???? ??? ??? ???? ?? ??? ?? ????. ?? ????? ????? ????? ????? ?? ??? ?????. Vue ???????? ?? ?? ??? ???? ??? ??? ????. 1??: Vue ???? ?? ?? Vue ?????? ??? ? ?? loading??? Vue ????? ??? ? ????. ??????? ?? ? ?? ??? ???? ???.

Vue2 ? Vue3?? 404 ?????? ???? ??? ?? ???? ?????. Vue2 ? Vue3?? 404 ?????? ???? ??? ?? ???? ?????. Feb 17, 2023 pm 02:25 PM

? ??? Vue ??? ???? Vue2 ? Vue3?? 404 ?????? ???? ??? ?? ?????. ??? ??? ????.

Vue?? ?? ?? ??? ???? ?? Vue?? ?? ?? ??? ???? ?? Nov 07, 2023 am 09:18 AM

Vue?? ??? ?? ??? ???? ?? Vue ????? ??? ?? ??? ???? ?? ???? ?? ?????. ?? ?? ??? ????? ???? ?? ??? ???? ?? ???? ???? ??? ??? ???? ? ????. ? ????? Vue?? ?? ?? ??? ???? ??? ???? ?? ?? ??? ?????. ?? Loading ?? ?? ??? ?? ?? Loading ?? ??? ???? ???. ? ?? ??? ??? ? ????.

Vue ??????? ????? ???? ??? ?? ?????: Axios ??? ?? Vue ??????? ????? ???? ??? ?? ?????: Axios ??? ?? Jul 18, 2023 am 09:12 AM

Vue ??????? ????? ???? ??? ?? ?????: Axios ?? ?? ??: Vue ??????? ????? ???? ??? ?? ?????: Axios ?? ?? ??: Vue ???? ??? ??? ???? ?????. Vue?? ????? ???? ??? ?? ?????? Axios? ???? ???? ?? API? ??? ??? ??? ?? ????? ???? ???? ??? ?? ?????. ? ????? Axios ?? ??? ? ?? ???? ?????? ????? ??? ???? ??? ??? ? ??? ?? ?? ??? ?????. ????

????? vue2? ??? ???? ??? ?? ??? ???? ??? ??? ?????. ????? vue2? ??? ???? ??? ?? ??? ???? ??? ??? ?????. Feb 20, 2023 pm 12:07 PM

? ??? vue2? ?? ?? ??? ?????. ?? vue2?? ??? ??? ?? ??? ???? ??? ?? ?????. ?? ?? ??? ??? ???? ?? ?? ???? ??? ??? ????.

See all articles