在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答
尕筱澄 回答

不同頁面調(diào)用同一個組件,但是會生成兩套組件(musicBar)參數(shù),所以會產(chǎn)生兩個定時器timer;
所以在切換router的時候,會有兩個timer不停迭代,應(yīng)該把timer定時器放在vuex中,保持唯一性;

在playMusic.vue 和 musicDetail.vue中添加router的進(jìn)入方法beforRouteEnter;當(dāng)進(jìn)入到這兩個頁面后,先關(guān)閉store中的定時器timer,再打開一個新的定時器,這樣就不會重復(fù);

//  //在進(jìn)入路由前
  beforeRouteEnter:function(to,from,next){
    next(function(vm){     //參數(shù)vm代表vue這個實(shí)例
       vm.$refs.musicBar.updateTime();
    });
  }

在musicBar.vue 中的添加的方法;

  //更新進(jìn)度條
    updateTime(){      
      //清除之前的定時器
      this.$store.commit("clearTime");
      var audioPlay = document.getElementById("musicId");
       audioPlay.pause();
      audioPlay.currentTime=this.$store.getters.currentTime;  //跳轉(zhuǎn)到上次記錄的時間
      if(this.isPlaying){
        this.playMusic();
      }
    }

app.js中使用 keep-alive保持在打開已經(jīng)打開過的頁面時不會重新載入

      <keep-alive>
        <router-view></router-view>
      </keep-alive>
      

router/index.js 中

  setTimer:function(state,timer){
     state.timer=timer;
   },
   clearTime:function(state){
     console.log("在store中清除timer");
     clearInterval(state.timer);
   }
枕頭人 回答

大概率是編譯完的代碼有問題,嘗試加括號。
(['test']).forEach

console.log(xxx)
;(['test']).forEach
刮刮樂 回答

那你的對象就要是{a:"1",b:"name"},a的值是字符串類型"1"而不是數(shù)字1

網(wǎng)妓 回答

F12啊,這是基礎(chǔ)啊

做不到 回答

這個恐怕不行,你得借助js了,寫個change函數(shù)吧,當(dāng)val改變了width也改變

不討囍 回答

shim:{

    "paging":{    
        deps: ['jquery']
    }
}
孤巷 回答

<meta name="content-type"; charset="UTF-8">

header("Content-Type:text/html;charset=gb2312");

這兩個地方

擱淺 回答

?,為什么總有人把這種update/set語法都搞錯,update table set A=X,B=X where ..; 不是什么set A=X and B=X .. 這里的on duplicate key update后面也是一樣。。。 不能用and。。。

淺淺 回答

感覺樓上說的有點(diǎn)麻煩,我用的是世界上最好的編輯器atom。
一、在atom裝上插件php-debug。
二、php.ini末尾加上這段配置,并重啟apache。

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true

三、就能用啦

嫑吢丕 回答

就像樓上說的,路徑有中文,最好都是英文目錄

亮瞎她 回答

import re
text = '{"熱門":[{display:"北京",data:"Beijing|北京(BJS)|1|BJS"},{display:"上海",data:"Shanghai|上海(SHA)|2|SHA"}]}'
find = re.findall(r'display:"(.?)".?([A-Z]{3})',text)
print(find)

注意沒顯示的星號

運(yùn)行結(jié)果:
[('北京', 'BJS'), ('上海', 'SHA')]
圖片描述

薄荷綠 回答
  1. 修改原數(shù), 四舍五入就加 0.005, 進(jìn)一就加0.009或0.0099999,看心情
  2. 放大100倍,ceilling, 再縮小100倍

<#function round2 n>
     <#if n?is_number><#return ((n*100)?round/100)? 
string><#else><#return n></#if>
</#function>

<#escape x as round2(x)>
... 可以這一段模板中的數(shù)都按round2規(guī)則輸出  ...

</#escape>

或用ceilling, 如您所需

<#function round2 n>
     <#if n?is_number><#return ((n*100)?ceiling/100)? 
string><#else><#return n></#if>
</#function>
伴謊 回答

猜測你提交的時候并沒有先調(diào)用表單校驗(yàn)的方法。

 this.$refs[name].validate((valid) => {
        if (valid) {
            this.$Message.success('Success!');
            // 到這里才進(jìn)行提交表單
        } else {
            this.$Message.error('Fail!');
        }
    })
薄荷綠 回答

windows也有遠(yuǎn)程桌面連接的軟件的,你用完后連接你的服務(wù)器登上root這個最高權(quán)限用戶,我就不信還不能修改你線上的某個文件或文件夾的權(quán)限

短嘆 回答

可以考慮 filter 過濾掉包含 item數(shù)組里的id的元素

孤星 回答

當(dāng)設(shè)置最小長度超過原本echarts自動設(shè)置的長度,則所有比設(shè)置長度短的數(shù)據(jù)都一樣長了。配個圖:
clipboard.png

瘋浪 回答

crontab是計劃任務(wù),當(dāng)然也是可以定時執(zhí)行腳本的,之所以你執(zhí)行不了,應(yīng)該是沒寫對。