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

鍍金池/ 問答/ HTML5問答
孤星 回答

holo.php 通過require 'checkingAge.php'; 導(dǎo)入php文件,并在holo.php中調(diào)用checkingAge函數(shù)并傳值,這是視頻出的作業(yè)題目,這沒問題吧?圖片描述

半心人 回答

bootstrap 是響應(yīng)式布局,可以說涵蓋了自適應(yīng),不能說bootstrap不能做自適應(yīng)。
想自己寫的話一般 是得寬度 間距等 采用百分比,字體用em 或者rem

爆扎 回答

打斷點(diǎn)看一下

懷中人 回答

$(this).next().val(); --針對input標(biāo)簽,獲取值

$(this).next().text(); --針對span或者textarea標(biāo)簽,獲取值

哎呦喂 回答

forceUpdate會跳過shouldComponentUpdate步驟直接觸發(fā)組件的render方法
官網(wǎng)建議應(yīng)該盡量避免使用forceUpdate

Normally you should try to avoid all uses of forceUpdate() and only read from this.props and this.state in render().
https://reactjs.org/docs/reac...
呆萌傻 回答

使用css的calc計(jì)算函數(shù)以及vw/vh視窗單位

.dialog{
    position:absolute;
    left:calc(50vw - 350px);
    top:calc(50vh - 250px);
    width:700px;
    height:500px;

}

當(dāng)然你也可以通過JS獲取當(dāng)前視窗可是區(qū)域的大小,動態(tài)設(shè)置left/top值

尐潴豬 回答

Quick Start:https://reactjs.org/docs/inst...
從頭到尾看一遍,codePen的例子不要跳過,這里僅僅是熱身。
Tutorial:https://reactjs.org/tutorial/...
從頭到尾做一遍,有概念模糊的地方到Quick Start反復(fù)查閱。

中文版的官網(wǎng)當(dāng)做輔助https://doc.react-china.org/

最后有個(gè)小建議,不要太相信非官方渠道的資料,因?yàn)橐痪湓捒诙鄠?,到最后就變?/p>

再贈送你一個(gè)Redux教程,Redux作者本人的視頻教程:https://egghead.io/lessons/re...

雨蝶 回答

hover誰誰方法,和里面外面有什么關(guān)系呢

我以為 回答

父級縮放,子級也是跟著縮放的吧

紓惘 回答

大致是這種意思 下級菜單的html放在上層的內(nèi)部

<div onmouseover="$('#menu1').show()" onmouseout="$('#menu1').hide()">
    <div>導(dǎo)航圖標(biāo)</div>
    <div id="menu1" onmouseover="$('#menu2').show()" onmouseout="$('#menu2').hide()">
        <div id="menu2"></div>
    </div>
</div>
陌顏 回答

高版本的瀏覽器都沒有管autocomplete了,具體解釋可以看stackoverflow

厭遇 回答

http://echarts.baidu.com/,不就用echarts就行了啊

來守候 回答

不是,不是使用bt布局時(shí)候 所有元素都要放到柵格化系統(tǒng)去。

可以不加?xùn)鸥窕到y(tǒng),柵格化是為了排版。但是往往我們都會放在柵格化系統(tǒng)里去,方便管理。

不過你可以加多個(gè)柵格化系統(tǒng),如果某些情況下你覺得一個(gè)柵格化系統(tǒng)不在靈活。

比如它的導(dǎo)航條,默認(rèn)就是一個(gè)獨(dú)立的柵格化系統(tǒng)。

如果需要可以看一下bt的小demo演示,頭部導(dǎo)航是獨(dú)立的柵格化,另外有些頁面是用的100%的寬度的

忠妾 回答

好吧,我在 官方github 找到了答案

事實(shí)上這個(gè)問題并沒有被解決,因?yàn)楫?dāng)前版本的 RN (5.2) 的 SectionList 似乎不支持 setNativeProps 的完整功能

眼雜 回答

echart 是在網(wǎng)頁上顯示的圖表,而網(wǎng)頁html用的單位是px

從圖標(biāo)的容器

<body>
    <!-- 為 ECharts 準(zhǔn)備一個(gè)具備大?。▽捀撸┑?DOM -->
    <div id="main" style="width: 600px;height:400px;"></div>
</body>

也可以看出單位為px

而對于移動端自適應(yīng)官網(wǎng)有文檔說明的
移動端自適應(yīng)

旖襯 回答

恰好在練習(xí)css3 比較粗糙,大體思路同樓上

<style>
    *{
        background: #080808;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    .box{
        width: 400px;
        height: 400px;
        position: relative;
        margin: 300px;
    }
    @-webkit-keyframes spin-a{
        form{
            -webkit-transform:rotate(0deg)
        }
        to{
            -webkit-transform:rotate(360deg)
        }
    }
    @-webkit-keyframes spin-b{
        form{
            -webkit-transform:rotate(10deg)
        }
        to{
            -webkit-transform:rotate(350deg)
        }
    }
    
    .a{
        position: absolute;
        left: 0;
        top: 0;
        width: 400px;
        height: 400px;
        border-radius:50%; 
        border: 15px solid #0B3B3C;
        border-top: 10px solid #080808;
        border-bottom: 10px solid #080808;
        -webkit-animation: spin-a 2s infinite linear;
        background-color: #091717;
         /* background-image: -webkit-radial-gradient(circle,#fff 160px,#091717 200px); */
    }
    .b{
        position: absolute;
        left: 25px;
        top: 25px;
        width: 350px;
        height: 350px;
        border-radius:50%; 
        border: 6px solid #17F6FB;
        border-top: 10px solid #091717;
        border-bottom: 10px solid #091717;
        -webkit-animation: spin-a 3s infinite linear;
        background-color: #0A3334;
        /* background-image: -webkit-radial-gradient(circle,#fff 150px,#091717 180px); */
    }

    .c{
        position: absolute;
        left: 45px;
        top: 45px;
        width: 310px;
        height: 310px;
        border-radius:50%; 
        border: 6px solid #17F6FB;
        border-top: 10px solid #0A3334;
        border-bottom: 10px solid #0A3334;
        -webkit-animation: spin-a 6s infinite linear;
        background-color: #0A3334;
        background-image: -webkit-radial-gradient(circle,#1F8989 100px,#0A3334 180px);
    }
    .d{
        position: absolute;
        left: 80px;
        top: 80px;
        width: 240px;
        height: 240px;
        border-radius:50%; 
        border: 15px solid #17F6FB;
        border-top: 10px solid black;
        border-bottom: 10px solid black;
        -webkit-animation: spin-a 1.5s infinite linear;
        background-color: black;
    }
    .e{
        position: absolute;
        left: 110px;
        top: 110px;
        width: 180px;
        height: 180px;
        border-radius:50%; 
        border: 4px solid #101D1D;
    }
    .f{
        position: absolute;
        left: 120px;
        top: 120px;
        width: 160px;
        height: 160px;
        border-radius:50%; 
        background-color: #080808;
    }
</style>

\

<div class="box">

    <div class="a"></div>
    <div class="b"></div>
    <div class="c"></div>
    <div class="d"></div>
    <div class="e"></div>
    <div class="f"></div>

</div>
情皺 回答

你這個(gè)不是outputinput的問題, 問題的根源是引用值原始值的問題

@Input()
private hero2: Hhh2;

hero2是個(gè)對象,對象在js中是引用值, 所以你在子組件中修改了hero2,父組件中的值當(dāng)然就改變了,因?yàn)槎贾赶蛲粋€(gè)內(nèi)存地址。

你可以嘗試傳入的值是一個(gè)string, number, boolean 這種原始值, 你再試試, 你就能理解了。

以下是原始值和引用值的基礎(chǔ)知識

在ECMAscript中,變量可以存放兩種類型的值,即原始值和引用值
原始值指的是代表原始數(shù)據(jù)類型的值,也叫基本數(shù)據(jù)類型,包括:Number、Stirng、Boolean、Null、Underfined
引用值指的是復(fù)合數(shù)據(jù)類型的值,包括:Object、Function、Array、Date、RegExp
根據(jù)數(shù)據(jù)類型不同,有的變量儲存在棧中,有的儲存在堆中。具體區(qū)別如下:
原始變量及他們的值儲存在棧中,當(dāng)把一個(gè)原始變量傳遞給另一個(gè)原始變量時(shí),是把一個(gè)棧房間的東西復(fù)制到另一個(gè)棧房間,且這兩個(gè)原始變量互不影響。
引用值是把 引用變量的名稱儲存在棧中,但是把其實(shí)際對象儲存在堆中,且存在一個(gè)指針由變量名指向儲存在堆中的實(shí)際對象,當(dāng)把引用對象傳遞給另一個(gè)變量時(shí),復(fù)制的其實(shí)是指向?qū)嶋H對象的指針,此時(shí) 兩者指向的 是同一個(gè)數(shù)據(jù),若通過方法改變其中一個(gè)變量的值,則訪問另一個(gè)變量時(shí),其值也會隨之加以改變;但若不是通過方法 而是通過 重新賦值 此時(shí) 相當(dāng)于 重新開了一個(gè)房間 該值的原指針改變 ,則另外一個(gè) 值 不會隨他的改變而改變。
厭遇 回答

按照你的寫法需要更換stars數(shù)組的值,但是你不是就一個(gè)評分,所以一個(gè)數(shù)組肯定是不行的,所以這個(gè)思路并不好

換個(gè)思路,就兩種圖片,黃色的總在前面,灰色的總在后面,那可以這么實(shí)現(xiàn)

data = ["5", "1", "3", "2", "1"]
imgs = {
    off: './img/net_more/star_off.png',
    on: './img/net_more/star_on.png'
}
<li v-for="(item,index) of data">
    <img class="stars" v-for="star in 5" :src="star <= item ? imgs.off : imgs.on" alt="1">
</li>
故人嘆 回答

之前用過別的方法。如果table中的td排布是有規(guī)律的,我遍歷到所有的td,按照i的倍數(shù)去取就可以了。

<body>
    <table>
        <thead>
            <tr>
                <th>姓名</th>
                <th>年齡</th>
                <th>性別</th>
                <th>昵稱</th>
                <th>電話</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>q0</td>
                <td>q1</td>
                <td>q2</td>
                <td>q3</td>
                <td>q4</td>
            </tr>
            <tr>
                <td>e0</td>
                <td>e1</td>
                <td>e2</td>
                <td>e3</td>
                <td>e4</td>
            </tr>
            <tr>
                <td>w0</td>
                <td>w1</td>
                <td>w2</td>
                <td>w3</td>
                <td>w4</td>
            </tr>
        </tbody>
    </table>
</body>
<script src="../echarts/jquery-3.1.0.min.js"></script>
<script>
    var tds = $('tbody').find('td');
    console.log(typeof tds);
    var temparr=[]
    for (var i = 0; i < $("tbody tr").length; i++) {
        temparr.push($("tbody tr").children("td").eq(0 + 5 * i).text())
    }
    console.log(temparr);
</script>

這樣數(shù)組中的結(jié)果就是一列。
圖片描述