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

鍍金池/ 問答
選擇 回答

101是要協(xié)商升級協(xié)議(比如websocket),協(xié)議都不通還怎么交互。
至于后面的206是因為你服務器支持Range,不需要從頭到尾把文件下載下來,可以分割成多個buffer,難道你要改成整個下載下來才能播?

離魂曲 回答

你得的結果應該是 4294967295 吧? 32位(not 16位),-1對應的2進制是 32個1,所以結果是2^32-1

懶洋洋 回答

好奇怪的需求。
既然事先知道應該按什么樣的規(guī)則去排序。查到數(shù)據后再應用程序里排序吧。

拽很帥 回答

我換成mounted這個鉤子函數(shù)就沒有報下面這個錯了。

喜歡你 回答
var str = "te13214545xsdf456";
console.log(str.replace(/[^x\d]/g,''));
有你在 回答
EXPLAIN select * from A 
left join B on A.aid=B.aid
where A.aid=100;

EXPLAIN select * from (
    select * from A where A.aid=100
) AA
left join B on AA.aid=B.aid

看看兩個語句的執(zhí)行計劃。

巴扎嘿 回答

我看你的需求不要列表的下標,不需要使用enumerate,直接用for循環(huán)就好。前者比后者效率低。

>>> import timeit
>>> timeit.timeit('for i in xrange(100): a[i]', 'a = list(xrange(100))')
7.2920000553131104
>>> timeit.timeit('for i, o in enumerate(a): o', 'a = list(xrange(100))')
10.359999895095825
影魅 回答

既然遮擋,那就調一下legend的位置,或者調其他的位置,文檔有詳細的介紹吧

夢囈 回答

問題找到了, 不是FileWriter的問題, 是生成文件并進行下載時

InputStream is = new FileInputStream(file);
OutputStream os = response.getOutputStream();
byte[] b = new byte[2048];
while ((is.read(b)) != -1) {
    os.write(b);
}

有bug

離殤 回答

get請求看下請求頭是不是設置Cache-Control不能緩存,或者是get請求后面帶了時間戳。

蝶戀花 回答

先給你的bean加上是否關注的字段,點擊的時候改變字段的值,在數(shù)據填充的時候判斷是否關注,再去設置不同的狀態(tài)。下面是虛代碼

    //點擊的時候改變字段的值
    public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
        //TODO:有bug,復用后狀態(tài)錯亂.需要點擊對應item的關注改變狀態(tài)
        TextView tvNotFocus = view.findViewById(R.id.tv_related_theme_recommended_focus);//默認未關注
        String focus = tvNotFocus.getText().toString();
        List<TopicRelatedRecommendedBean> data = getData();
        TopicRelatedRecommendedBean topicRelatedRecommendedBean = data.get(position);
        boolean select = topicRelatedRecommendedBean.isSelect();
        Log.d(TAG, "1145=   "+select);
        if (view.getId() == R.id.tv_related_theme_recommended_focus) {
            topicRelatedRecommendedBean.isAttention = !topicRelatedRecommendedBean.isAttention;
            notifyDataSetChanged();
        }
    }
    
    //填充數(shù)據的時候判斷
    @Override
    public void onBindViewHolder(RecyclerHolder holder, int position) {
        List<TopicRelatedRecommendedBean> data = getData();
        TopicRelatedRecommendedBean topicRelatedRecommendedBean = data.get(position);
     
        holder.tvNotFocus.setText(topicRelatedRecommendedBean.isAttention ? "關注" : "已關注");
        holder.tvNotFocus.setBackgroundResource(topicRelatedRecommendedBean.isAttention ? R.drawable.topic_already_focus_shape : R.drawable.release_button_shape);
    }
紓惘 回答

這就是數(shù)據持久化的必要性了。

事務的話由數(shù)據庫的事務來接手可能比較好,當然如果你自己用代碼實現(xiàn)也沒問題,注意事務的鎖也要持久化就行

糖果果 回答

在路由攔截中寫是正確的,往下的思路你沒想透
如果要去的登陸頁,不判斷有無本地信息
如果去的是其它頁面,有本地登陸信息且未超時過,否則轉登陸頁
show my code

    if(to.name==="login"){
        next();
    }else{
        if(loginInfo){
            // 這里要加一個有登陸信息比對時間
            next()
        }else{
            next("login")
        }
    }

另一個大佬的回答,供參考:
https://segmentfault.com/q/10...

心夠野 回答

沒必要那么麻煩,直接在router/index.js里配置就好

index.js

...
routes: [
    {
      path: '/',
      redirect: '/weixin'
    },
    {
      path: '/weixin',
      name: 'Weixin',
      component: Weixin,
      meta: {title: '微信'}
    },
    {
      path: '/contact',
      name: 'Contact',
      component: Contact,
      meta: {title: '通訊錄'}
    },
    {
      path: '/find',
      name: 'Find',
      component: Find,
      meta: {title: '發(fā)現(xiàn)'}
    },
    {
      path: '/my',
      name: 'My',
      component: My,
      meta: {title: '我'}
    },
  ]

組件里獲取標題

this.$route.meta
晚風眠 回答

抱歉!ref的概念我搞混了。
復制一段官方文檔的話:

關于 ref 注冊時間的重要說明:因為 ref 本身是作為渲染結果被創(chuàng)建的,在初始渲染的時候你不能訪問它們 - 它們還不存在!$refs 也不是響應式的,因此你不應該試圖用它在模板中做數(shù)據綁定。

如果你想在子組件訪問父組件的dom結構,可以通過綁定data傳進去。

尐飯團 回答

你這樣肯定是不行的,這樣的route在加載的時候已經決定了是admin還是user,而不是一個動態(tài)的路由,你應該把component寫成一個函數(shù),這樣才是動態(tài)加載。

夢若殤 回答

JS代碼:

//鼠標事件:1.播放音樂 2.更改背景色
function mouseEvent_changeColor() {
    var tabs = document.getElementsByTagName("th");
    var tabsLen = tabs.length;
    for(var i=0;i<tabsLen;++i) {
        var curColor;
        tabs[i].onmouseover = function() {
            //更改背景色
            curColor = this.style.backgroundColor;
            this.style.backgroundColor = "#fff";
            //播放音樂
            playMusic(this.id);
        }
        tabs[i].onmouseout = function() {
            //改回原本的背景色
            this.style.backgroundColor = curColor;
        }
    }
    
}

function playMusic(thisId){
    var audio = document.getElementById("music");
    audio.src = "songs" + "/" + thisId + ".mp3";
    console.log(thisId + " " + audio.src);
    audio.play();
}

HTML代碼:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Color and Music</title>
        <link rel="stylesheet" href="colorAndMusic.css">
    </head>
    <body>
        <table id="colorTable">
        <tr>
            <th class="_ffffcc" id="d5"> </th>
            <th class="_ffcccc" id="d3"> </th>
            <th class="_8696a7" id="d3"> </th>
            <th class="_fffaf4" id="d4"> </th>
            <th class="_cc9999" id="d2"> </th>
            <th class="_e3b4b8" id="d2"> </th>
            <th class="_eea2a4" id="d1"> </th>
            <th class="_8fb2b9" id="d3"> </th>
        </tr>
        </table>
        <audio src="" id="music"></audio>
        <script src="colorAndMusic.js"></script>
    </body>
</html>

除了修改代碼之外,發(fā)現(xiàn)ogg格式播放有問題。雖然chrome支持ogg,但只要更換成MP3格式就能正常播放。

別瞎鬧 回答

不是太明白你想要實現(xiàn)的效果,或者,你想要做什么
https://docs.npmjs.com/misc/s...
你想要的,是否是這樣呢

{
  "name": "test",
  "main": "server.js",
  "scripts": {
    "start": "npm run build && npm run dev ",
    "dev": "", // 做點什么
    "build": "" // 做點什么
  },
  "dependencies": {
  }
}
傲寒 回答

--with-config-file-path=/usr/local/php7/lib
這個配置的目錄下邊有沒有php.ini???
php啟動的時候是可以手動指定配置文件的,https://www.cnblogs.com/gouge...
這個鏈接參考下