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

鍍金池/ 問(wèn)答/ HTML問(wèn)答
亮瞎她 回答
"scripts": {
    "dev": "node build/dev-server.js",
//    "kk": "node build/dev-server.js",
    "build": "node build/build.js",
    "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
    "e2e": "node test/e2e/runner.js",
    "test": "npm run unit && npm run e2e",
    "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
  },

不要亂改啟動(dòng)配置

女流氓 回答
<textarea placeholder="說(shuō)點(diǎn)什么......" autofocus="autofocus"></textarea>

網(wǎng)上找的,你試試行不,給個(gè)回復(fù)

替身 回答

<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
    .hide {
        display: none;
    }

    .square {
        background-color: #fff;
        border: 1px solid #bfbfbf;
        display: inline-block;
        height: 0.9em;
        padding: 2px;
        border-radius: 100%;
        margin-right: 5px;
        margin-top: -2px;
        vertical-align: middle;
        width: 0.9em;
        line-height: 1;
        box-sizing: content-box;
    }

    .hide:checked+.square:after {
        background-color: #ffd958;
        content: "";
        display: inline-block;
        height: 0.9em;
        width: 0.9em;
        vertical-align: top;
        border-radius: 100%;
    }
</style>

</head>

<body>

<label>
    <input class="hide" type="radio" name="sex" id="tbb">
    <span class="square"></span>
    <span>b</span>
</label>
<label>
    <input class="hide" type="radio" name="sex" id="tbg">
    <span class="square"></span>
    <span>g</span>
</label>

</body>

</html>

還吻 回答

element-ui貌似沒(méi)有縱向表頭樣式,還是自己實(shí)現(xiàn)吧。

柒喵 回答

在 v-if 后面的條件發(fā)生變化時(shí)調(diào)用 nextTick 設(shè)置回調(diào)函數(shù)即可。
比如:

<template>
    <div v-if="isDisplay">Example</div>
</template>

<script>
    export default {
        data() {
            return {
                isDisplay: false
            }
        },
        mounted() {
            this.$http({
                method: 'GET'
                url: 'api.test.com'
            }).then(res => {
                // 更新數(shù)據(jù)
                this.isDisplay = res.data.isDisplay;
                // 此時(shí) DOM 還沒(méi)有更新,設(shè)置回調(diào)函數(shù)
                this.$nextTick(function () {
                    // 此時(shí)已經(jīng)渲染完成
                });
            });
        }
    }
</script>

同樓上,最好使用數(shù)組來(lái)組織你的結(jié)構(gòu),確保遍歷的有序。

故林 回答

你說(shuō)的是 options吧?這個(gè)是檢查跨域的 不用在意

type-radio js-type-radio這兩個(gè)重復(fù)的,寫(xiě)死就好了啊, 判斷那個(gè)多出來(lái)的,要么加上,要么為“”

因?yàn)槟阕咏M件使用了v-for,這樣會(huì)導(dǎo)致你子組件的 first-keng-->slot 重復(fù)定義,warning就是說(shuō)你重復(fù)定義first-keng

萌面人 回答

canvas measureText 方法可以事先獲取文字畫(huà)出來(lái)的長(zhǎng)度 根據(jù)這個(gè)長(zhǎng)度 你可以動(dòng)態(tài)改變寬度 以及位置去在canvas顯示 如果是改變input的長(zhǎng)度 你可以用相同的字體樣式 寫(xiě)入一個(gè)div 去獲取div的長(zhǎng)度 來(lái)動(dòng)態(tài)改變input

命多硬 回答

因?yàn)槟銥?code>this.__proto__添加了myFunctionshowScreen兩個(gè)key啊...在遍歷的時(shí)候就會(huì)輸出兩個(gè)吶...

那我改出來(lái)一個(gè)大致能滿足你的需求的版本,你可以瞧一眼...

<script>
        
function a() {
    console.log("I'am a function.");
}
//b是實(shí)例化對(duì)象,a是構(gòu)造函數(shù)
var b = new a();
//console.log(b.__proto__)

var $ = function() {
    extend = function(obj)
    {
        console.log(obj)
        console.log('擴(kuò)展')
        for(var key in obj)
        {
            console.log('key');
            console.log(key);
            
            console.log('obj');
            console.log(obj);
        
            // this.__proto__[key]=obj[key];
        }
    }  
    return { extend : extend };  
}();  

$.extend({
    myFunction:function(obj)
    {
        console.log('我函數(shù)')  
    }
})

console.log('第二次')

$.extend({
    showScreen:function(obj)
    {
        console.log('展示的大屏幕')  
    }
})


// $.showScreen;

// $.myFunction;

</script>
陌上花 回答

可以嘗試<keep-alive>進(jìn)行緩存,或者后退到B時(shí)重新渲染B里的數(shù)據(jù)

老梗 回答

toggleClass的用法就是,如果你選擇的頁(yè)面元素中存在class屬性,那就去掉calss屬性;如果不存在class屬性,就添加class屬性。

<a class="glyphicon glyphicon-chevron-down" id="row"></a>

$("#row").click(function(){
    $(this).toggleClass('glyphicon glyphicon-chevron-up');
}) 

點(diǎn)擊一次的時(shí)候,代碼去掉 ‘glyphicon’ 加上 ‘glyphicon-chevron-up’
代碼變成了

<a class="glyphicon-chevron-down glyphicon-chevron-up" id="row"></a>

所以圖標(biāo)顯示不出來(lái)

要想實(shí)現(xiàn)切換可以改成

$("#row").click(function(){
    $(this).toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
})