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

鍍金池/ 問答/ HTML5問答
野橘 回答

可以加個(gè)flag來判斷用戶是否已經(jīng)登錄。然后在小程序的onshow生命周期函數(shù)里判斷如果用戶登錄了就直接跳轉(zhuǎn)首頁。如果沒有登錄的話就跳轉(zhuǎn)登錄頁面。登錄態(tài)失效了也是同樣加判斷。

背叛者 回答

overflow-x: auto; 所謂x 是超出x自適應(yīng) 而不是超出加滾動(dòng)條

overflow-x:scroll 這個(gè)是x 加滾動(dòng)條

clipboard.png

笨辦法,單擊radio時(shí),把id放到state中。然后在topic頁面獲取這個(gè)state就可以了。

router可以這樣傳呀。

<Link to={`/topic/${selectedId}`}/>
<Router path='/topic/:selectedId' component={/* */} />
笨小蛋 回答

1.Z-INDEX常用于同級(jí)之間比較
<div>

<div class="first common">
    i am the first div.

</div>

<div class="second common">
  i am the second div.

</div>

<div class="third common">
  i am the third div.
</div>

</div>

這樣的div結(jié)構(gòu)設(shè)置z-index,輕松愉快愉快。

2.像父子關(guān)系的,父元素不設(shè)置z-index,設(shè)置子元素為負(fù)值,即可實(shí)現(xiàn)父元素在上的效果

<div class="first common">

i am the first div.
<div class="second common">
  i am the second div.
</div>

</div>

應(yīng)該是你的代碼沒寫對,不然是不會(huì)出現(xiàn)這種情況的,把你代碼貼上來看看

臭榴蓮 回答

不能,h5相當(dāng)于嵌在app的一個(gè)框里的,app沒有沉浸式狀態(tài)欄,h5是不能的

涼汐 回答

dom對象的的css樣式是繼承父級(jí)的,所以需要把html,body的高度設(shè)置為100%div的高度才能100%自適應(yīng)。

撥弦 回答

stringify的時(shí)候檢測到某個(gè)value是function的時(shí)候tostring一下?但問題還是很多的

毀了心 回答

php就用array_diff就可以

a少的:

array_diff($b, $a);

反過來,就是a多的:

array_diff($a, $b);

返回一個(gè)數(shù)組.

https://secure.php.net/manual...

使用pdf.js咯。
然后就還有其他一些方法。比如服務(wù)端處理成圖片。這種。

下面這個(gè)是一個(gè)pdf.js相關(guān)的問題。你可以去看看界面
https://segmentfault.com/q/10...

何蘇葉 回答

好像沒辦法做到完美的圓。不過你的截圖上看其實(shí)是邊緣太銳利造成的,可以簡單改造一下讓圖形柔和一點(diǎn),如下:

clipboard.png

.box{
    position: relative;
    width: 300px;
    height: 140px;
    background: red;

}
.box:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;

    background: radial-gradient(farthest-corner, #fff 50%, rgba(255, 255, 255, .5) 53%, rgba(255, 255, 255, 0) 0%);
    background-size: 20px 20px;
    background-repeat: repeat-y;
}
.box:after{
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;

    background: radial-gradient(farthest-corner, #fff 50%, rgba(255, 255, 255, .5) 53%, rgba(255, 255, 255, 0) 0%);
    background-size: 20px 20px;
    background-repeat: repeat-y;
}
別硬撐 回答

1.對返回值先做下處理,轉(zhuǎn)換成對象:

var scoreMap = {
    good:1,
    morning: 1,
    // 等等
}

2.把源字符串拆分,遍歷,獲取顏色

var arr = 'good morning'.split(' ')
for(var i= 0; i < arr.length; i++) {
    console.log(scoreMap[arr[i]])
    if (scoreMap[arr[i]] > 1) {
        color = '綠色'
    } else {
        color = '紅色'
    }
}
懶洋洋 回答

所謂的手機(jī)配置就是一個(gè)js function,將其px轉(zhuǎn)換為rem.
所以你只要在項(xiàng)目中使用rem就可以了,把bodyfont-size當(dāng)成100px.
如果使用第三方組件后,發(fā)現(xiàn)沒有高清處理,那么就將那個(gè)高清js放到index.html中就可以了

朕略傻 回答

排查問題:
1、將你要賦的值打印出來看看存不存在?
2、隨便為附一個(gè)值:document.getElementById("telephone_input").value = '123123';看看能不能成功?