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

鍍金池/ 問答/ HTML問答
尛曖昧 回答

當(dāng)nickName有值后,再更改firstName或lastName將不再 return this.firstName + '.' + this.lastName

夢(mèng)囈 回答

用法是沒錯(cuò)的,我覺得報(bào)錯(cuò)應(yīng)該是因?yàn)槟惆?br>this.props.actions.openSidebar()
寫成
this.props.actions.openSideBar()
了吧

哎呦喂 回答

復(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>
</head>
<body>
    <div id="app2">
        <!-- 測(cè)試按鈕,綁定了數(shù)據(jù),點(diǎn)擊后text不更新 -->
      <button @click="change">{{text}}</button>
        <p v-once>{{text}}</p>
        <p>{{text}}</p>
        <!-- 新按鈕,點(diǎn)擊后測(cè)試按鈕{{text}}更新 -->
    <button @click="change">新按鈕</button>
    </div>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.js"></script>
    <script>
         new Vue({
             el:'#app2',
             data:{
                 text:'測(cè)試用的數(shù)據(jù)'
             },
             methods:{
                 change:function(){
                     this.text='啊真愛上了阿強(qiáng)';
                 }
             }
         })
    </script>
</body>
</html>

clipboard.png

鹿惑 回答
function arrSlice (arr) {
  return arr
    .sort(() => Math.random() > .5) // 打亂
    .map((e, i) => i % 2 ? null : [arr[i], arr[i + 1]]) // 兩兩取出
    .filter(Boolean)
}
陪我終 回答

處理地圖文件,設(shè)立一個(gè)閾值,這里就是你中間的線,然后按規(guī)則統(tǒng)一往左移,碰到負(fù)數(shù)(或者其他類型超過邊界的數(shù)據(jù)),就給加上一個(gè)寬度

尐懶貓 回答

點(diǎn)顏色和背景成組放進(jìn)一個(gè)數(shù)組里面,點(diǎn)擊第一項(xiàng)就用第一個(gè)的顏色和背景來改變按鈕,點(diǎn)擊第二個(gè)就用第二個(gè);這樣的話,還可以擴(kuò)展更多,只要改變數(shù)組就好了

安若晴 回答

打開debug,看看http情況下加載的樣式是不是還是https的

薔薇花 回答

因?yàn)?code>Array在js里面是 引用類型,雖然你console.log在前push在后,但是因?yàn)?strong>引用類型是傳址不是傳值,所以你在控制臺(tái)看到的數(shù)組會(huì)隨著數(shù)組的后繼操作而更新

來守候 回答

已解決,之前是用multer的時(shí)候設(shè)置出了一點(diǎn)錯(cuò)誤

愚念 回答

參照樓上的修改了一下,嘻嘻

var deep = 0;
function getMaxDepthByKey(str, data) {
    for (var i = 0; i < data.length; ++i) {
        if (str === data[i].key) {
            deep = getDeep(data[i]);
            break;
        } else {
            if (data[i].hasOwnProperty('children')) {
                getMaxDepthByKey(str, data[i].children);
            }
        }
    }
    return deep;
}
var maxLen = [];
function getDeep(data) {
    if (data.hasOwnProperty('children')) {
        maxLen[data.key] = 0;
        for (let item of data.children)
            maxLen[data.key] = Math.max(maxLen[data.key], getDeep(item) + 1);
        return maxLen[data.key];
    } else {
        return 0;
    }
}
console.log(getMaxDepthByKey('tree1', treeData));//3
console.log(getMaxDepthByKey('tree2', treeData));//2
console.log(getMaxDepthByKey('tree3', treeData));//1
console.log(getMaxDepthByKey('tree4', treeData));//0
console.log(getMaxDepthByKey('tree5', treeData));//0
console.log(getMaxDepthByKey('tree6', treeData));//0
console.log(getMaxDepthByKey('tree7', treeData));//0
鐧簞噯 回答

應(yīng)該可以換成promise的寫法,把上一個(gè)返回的數(shù)據(jù)作為下一個(gè)的參數(shù)

把類型給去掉就好了

function getUsers(cb){
  $.ajax({
    url: "/api/users",
    method: "GET",
    success: function(data){
      cb(data.items);
    },
    error: function(error){
      cb(null);
    }
  });
}
淡墨 回答

__proto__對(duì)象原型,每個(gè)對(duì)象都有。你可以簡(jiǎn)單的理解成當(dāng)前對(duì)象繼承自它的原型。數(shù)組也是對(duì)象所以也有。

厭惡我 回答

這是webpack的nodejs api。出處:https://www.webpackjs.com/api...

墨小白 回答

原先看到過類似的效果,你看看這個(gè)是你想要的嗎?
codepen demo

Update:

body,
html,
div {
  background: #292a38;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}
svg {
  width: 200px;
  height: 150px;
  cursor: pointer;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
path {
  fill: none;
  -webkit-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -moz-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -o-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -ms-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  stroke-width: 40px;
  stroke-linecap: round;
  stroke: #a06ba5;
  stroke-dashoffset: 0px;
}
path#top,
path#bottom {
  stroke-dasharray: 240px 950px;
}
path#middle {
  stroke-dasharray: 240px 240px;
}
.cross path#top,
.cross path#bottom {
  stroke-dashoffset: -650px;
  stroke-dashoffset: -650px;
}
.cross path#middle {
  stroke-dashoffset: -115px;
  stroke-dasharray: 1px 220px;
}

codePen可以查看編譯后的CSS和JS:

clipboard.png

clipboard.png

孤星 回答

Spring clound微服務(wù)方案,可以解決這個(gè)問題

凹凸曼 回答

<navigator/>沒加url