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

鍍金池/ 問答/ HTML問答
陌如玉 回答

使用relative,元素沒有脫離了文檔流,所以float生效,
使用absolute,元素脫離了文檔流,所以失效了

伐木累 回答

后端需要解決跨域。也就是設置響應頭。?;蛘咴?0上設置一下反向代理

久愛她 回答

計時器 從播放開始 5分鐘后執(zhí)行你的邏輯

念初 回答

在data中加一個currentIndex,代表選中的索引,點擊的時候改變一下

data() {
    return currentIndex:0
},
methods: {
  typeName(index) {
    this.currentIndex = index
  }
}
<ul>
    <li v-for="(i,index) in type_name" :class="index===currentIndex?'active_ia':''" @click="typeName(index)">{{i.type_name}}</li>
</ul>
朕略萌 回答

https://github.com/axios/axio...

就是在發(fā)起請求時, 添加 cancelToken 參數(shù), 然后對這個 token 調(diào)用 cancel 方法.

失魂人 回答

IllegalArgumentException:非法參數(shù)異常,

試下這個,應該可以。
給你講述下過程:
去了stackoverflow,debug。最后發(fā)現(xiàn)data為null,,加油吧,我們需要學的還很多
下次遇到問題debug下,看是哪條代碼出現(xiàn)問題了,通過回答你,我也學到了很多
關鍵點在這里: throw new IOException();

try (OutputStream out = new FileOutputStream(newPath.toString())) {
            out.write(data);
        } catch (IOException e) {
            e.printStackTrace();
            throw  new RuntimeException("異常是這么拋出的");
           //throw  new RuntimeException(e);
        }
public static String base64ToImg(String src) throws IOException {
        String uuid = UUID.randomUUID().toString();
        StringBuilder newPath = new StringBuilder("xx");
        newPath.append("xx").
                append(uuid).
                append("xx");
        if (src == null) {
            return null;
        }
        byte[] data = Base64.getDecoder().decode(src);
        try (OutputStream out = new FileOutputStream(newPath.toString())) {
            out.write(data);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return newPath.toString();
    }

補充另外一種常用關閉資源:

 public static String base64ToImg(String src) throws IOException {
        String uuid = UUID.randomUUID().toString();
        StringBuilder newPath = new StringBuilder("xx");
        newPath.append("xx").
                append(uuid).
                append("xx");
        if (src == null) {
            return null;
        }
        byte[] data = null;
        OutputStream out = null;
        Base64.Decoder decoder = Base64.getDecoder();
        try {
            out = new FileOutputStream(newPath.toString());
            data = decoder.decode(src);
            out.write(data);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (out != null) {
                out.close();
            }
        }
        return newPath.toString();
    }
任她鬧 回答

埋點,可以用growingio或者百度統(tǒng)計這種第三方的統(tǒng)計

浪蕩不羈 回答

編輯菜單、是可以自定義吧!菜單添加到導航里面

抱緊我 回答

應該是DOM的重排和重繪次數(shù)過多,影響了DOM性能,建議直接在js中生成html,然后插入到dom中:

let starList = [3, 2, 5];
function loadStars() {
    let dom = '';
    starList.forEach(e => {
        dom += '<ul>/
            <input value="' + e + '" type="hidden"/>'
        for (let i = 0; i < 5; i++) {
            dom += i < e ? '<li class="on"></li>' : '<li></li>';
        }
        dom += '</ul>';
    });
    document.getElementById("list").innerHTML = dom;
}
毀與悔 回答
$.each($('.imgBlock'),function(index,el){
    $(this).click(function(){
    console.log(index);
    })
})
   function  showBigImg(buttons){
        buttons.parent().children().each(function(i,e){
            if($(this).is(buttons)){
                console.log(i)                
            }
        })
    }
怣人 回答

SyntaxError: Invalid or unexpected token 這個錯誤是說有語法錯誤,多個少個}什么的,你看錯誤前后有你自己寫的代碼嗎?

熟稔 回答

沒看出來你的儀器和數(shù)量如何對應起來的,所以才有這種問題。
我想的是,你的每一行都對應一個對象才行,類似rows:[{code: count}]這種的,然后就容易解決了。

  1. 增加數(shù)據(jù)時,寫成rows.push({newCode: 1}),input需要綁到(v-for="el in rows")el.count這里。
  2. 發(fā)送時把整個rows發(fā)回去。

結(jié)構(gòu)需要跟后端商量一下,也可以是{code: this_code, count: this_count},反正key-value對上就好。

柒槿年 回答
        var i = 0;

        $(".link button").click(function(){
            ++i%2 ? $(".link ul").css("display",'block') : $(".link ul").css("display","none");
        });
老梗 回答

firefox報錯說json格式錯誤,跟header無關。你看看在firefox里發(fā)送的數(shù)據(jù)對不對把。

旖襯 回答

以 php 為例:

// 解碼 base64 獲取視頻真實地址
$video_url = base64_encode($base64);

$output_filename = "test.mp4";

$host = $video_url;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, false);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close($ch);

print_r($result); 

// 寫入文件
$fp = fopen($output_filename, 'w');
fwrite($fp, $result);
fclose($fp);
尕筱澄 回答

可以存對象啊

const chart = {}
for (let i = 0; i <  $scope.detailsList.length; i++) {
  chart[$scope.detailsList[i].id] = tiny.charts({document.getElementById($scope.detailsList[i].id), option})
}

clipboard.png