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

鍍金池/ 問答/ HTML問答
薄荷糖 回答
var aaa='';
for(let i=0;i < 152; i++){

aaa+='KPI'+code1[i]+code2[i]+code3[i];
}
$(#demo2).html(aaa)
鹿惑 回答

同學(xué)…… websocket 不等于 普通的TCP socket,websocket和HTTP是平級的,都是應(yīng)用層協(xié)議。你用socket包建立的是普通的TCP socket,當(dāng)然不會神奇地變成websocket,自然報(bào)錯(cuò)。

就錯(cuò)誤信息來看,也很明確,網(wǎng)絡(luò)沒問題,但回復(fù)不合格式,invalid。

朕略傻 回答

加載詳情的時(shí)候,可以把后端傳過來的image的字符串存起來,可以轉(zhuǎn)成數(shù)組

this.xx.imgList=resp.xx.images

移除的時(shí)候找到這個(gè)url,刪除掉

 handleImgRemove(file, fileList) {
   let url = file.response && file.response.data ? file.response.data : file.url;
   let index = this.xx.imgList.indexOf(url)
   this.editForm.imgList.splice(index, 1);
  }
厭遇 回答

vue-echarts-v3 只是把 echarts 的屬性做了封裝,你用的時(shí)候,直接把對應(yīng)的 option 配置塞進(jìn)去就好了。把你找到的地圖下鉆的例子里的 option 直接應(yīng)用到項(xiàng)目中就行。

心癌 回答

設(shè)置position: absolute;bottom: 0;

.parent {
    width: 40px;
    height: 100px;
    position: relative;
    overflow: hidden;
}
.child{
    position: absolute;
    bottom: 0;
}

<div class="parent">
    <div class="child">
        1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z
    </div>
</div>
尕筱澄 回答

你在組件外憑什么能直接拿到你 test 組件內(nèi) input 的 ref 嘛。
兩種方法:
1、test 組件內(nèi):直接拿 input 的 ref。

        show(event,item){
            this.$emit('show',event,item);
            console.log(this.$refs[item.text1]);
            this.$nextTick(() => {
              this.$refs[item.text1].focus()
            })
        }

2、外部組件:先拿到 test 組件的 ref,再拿 input 的 ref。

        show(event,item){
          console.log(this.$refs)
            item.show_input = true;
            this.$nextTick(() => {
              // 
              this.$refs[`test-${item.text1}`][0].$refs['input'].focus()
            })
        }
厭遇 回答

manifest.json:

{
    // ...其它配置
    "permissions": ["tabs", // ...其它權(quán)限]
}
chrome.tabs.create({url, [...other param]}, cb)

詳情見chrome.tabs的文檔

夢若殤 回答

getCityList的代碼貼一下。我猜測是空值的請求發(fā)出去了,然后回來的慢。結(jié)果空值把有值的覆蓋的。寫一下控制,只有最后一次ajax才會賦值。

看控制臺是已經(jīng)渲染出來了
clipboard.png

因?yàn)辄c(diǎn)出來的那個(gè)東西,不是select呀。
clipboard.png

讀完需要~分鐘

文章的總字?jǐn)?shù)/一般人每分鐘可以讀多少字。
這個(gè)肯定是一個(gè)粗略的估計(jì)。

~次閱讀

這個(gè)絕大部分時(shí)候沒有必要精確,粗略統(tǒng)計(jì)就可以了,當(dāng)然你非要精確統(tǒng)計(jì)也可以。
每個(gè)網(wǎng)站對閱讀次數(shù)統(tǒng)計(jì)的規(guī)則可能不一樣的
有的網(wǎng)站是打開一次文章頁面閱讀量就加1;
有的網(wǎng)站是某一個(gè)用戶在一段時(shí)間內(nèi)多次打開網(wǎng)站閱讀,但是閱讀量卻只加1;
規(guī)則很多很多了,具體看你項(xiàng)目采用什么規(guī)則。
粗略統(tǒng)計(jì)或者精確統(tǒng)計(jì),一般都是用緩存實(shí)現(xiàn)的,閱讀量先放在緩存中,然后在把緩存中的閱讀量刷新的db中。
什么時(shí)間把閱讀量刷到db?
方案很多了:
比如當(dāng)某個(gè)文章的閱讀量超過指定的閾值就刷新的db中。
比如使用定時(shí)任務(wù)等等。

閱讀多長時(shí)間js實(shí)現(xiàn)下吧。
html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script class="jquery library" src="/js/sandbox/jquery/jquery-1.8.2.min.js" type="text/javascript"></script>
    <title>xxx</title>
  </head>
<body>
    <div id="content">
               這個(gè)絕大部分時(shí)候沒有必要精確,粗略統(tǒng)計(jì)就可以了,當(dāng)然你非要精確統(tǒng)計(jì)也可以。

    </div> 
  </body>
</html>

js:

$(function(){
      var readLengthPerMinute = 400;//一般人每分鐘閱讀字?jǐn)?shù)為300-500左右,這里取400吧。
        var textLength = $('#content').text().length;//獲取文章長度
       
      var readTime;
    if(textLength <= readLengthPerMinute){
          readTime = 1;
    }else{
        readTime =Math.round(textLength /readLengthPerMinute ); 
    }
       
    alert("大概需要閱讀時(shí)間為:"+readTime+"分鐘");
});

青檸 回答

for的每次循環(huán)算一個(gè)作用域,放外面不行

離殤 回答

不清楚你用的是什么元素,你嘗試添加一個(gè) padding:0px, 然后再看。

忘了我 回答

可以添加一個(gè)響應(yīng)攔截器

const instance = axios.create()
// 添加一個(gè)響應(yīng)攔截器
instance.interceptors.response.use(response => {
  window.vm.$loading.hide()
  // 在這里對返回的數(shù)據(jù)進(jìn)行處理
  let status = response.status
  let data = response.data
  if (status === 200) {
    if (data.code !== '0000') {
      window.vm.$alert({
        msg: data.desc,
        type: 'danger'
      })
    }
    return Promise.resolve(data)
  } else {
    return Promise.reject(response)
  }
}, error => {
  // response error
  console.log(error)
  window.vm.$loading.hide()
  window.vm.$alert({
    msg: '請求異常,請聯(lián)系管理員!',
    type: 'danger',
    autoClose: false
  })
  return Promise.reject(error)
})
export default instance