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

鍍金池/ 問答/ HTML問答
萌面人 回答

自己回答:

入口文件改一下


import uiCaseader from "./uiCaseader.vue"
import uiSelect from "./uiSelect.vue"
import uiOption from "./uiOption.vue"
import uiItemtext from "./uiItemtext.vue"

const components = [
    uiCaseader,
    uiSelect,
    uiOption, 
    uiItemtext, 

  ];

const install = function(Vue) {
    if (install.installed) return;
    components.map(component => Vue.component(component.name, component));
  };


if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default {
    install 
}

組件中必須要有 name

獨白 回答

兄弟,你定義了2個bigFish module。
angular.module函數(shù)為2個參數(shù)時就是創(chuàng)建一個模塊了。

吢丕 回答

h5展示頁引入編輯后富文本所需的css class樣式, 編輯后的富文本html標簽里有class不用style,

青裙 回答

在url中增加‘http://’前綴,瀏覽器將會認為是個絕對url
默認不帶'http://'則會認為是當前url

遲月 回答

使用onbeforeunload比較合適吧,彈出一個提示框讓用戶確認,這樣用戶以任何方式關閉此頁面前都需確認

window.onbeforeunload = function (e) {
  e = e || window.event;
  // 兼容IE8和Firefox 4之前的版本
  if (e) {
    e.returnValue = '關閉提示';
  }
  // Chrome, Safari, Firefox 4+, Opera 12+ , IE 9+
  return '關閉提示';
};

window.onbeforeunload

蔚藍色 回答

題主把其他的 console 注釋掉,在 while 里面加一個 console

while (objStack.length) {
          for (let i = count; i < objStack[objStack.length - 1].children.length; i++) {
            /*this.*/objectIterator(objStack[objStack.length - 1].children[i], arr, objStack)
          console.log(objStack[objStack.length - 1],objStack.length);//新增:最后一個 undefined,0
          }
          let obj = objStack.pop()
          if (obj.parent && obj.parent.children && Array.isArray(obj.parent.children)) {
            count = obj.parent.children.indexOf(obj) + 1
          } else {
            count = 0
          }
        }

報錯的原因是,你在 for 循環(huán)里遞歸的時候,報錯之前已經(jīng)把 objStack 清空了,所以在 for 循環(huán)里 objStack[objStack.length - 1].children 這樣用的時候,相當于objStack[-1].children ,objStack 是個空數(shù)組,當然報錯了,,
解決辦法:我給你沒有辦法參與循環(huán)的時候,直接跳出了 while 循環(huán),不知道是不是你想要的結果:

        loop://新增
        while (objStack.length) {
          for (let i = count; i < objStack[objStack.length - 1].children.length; i++) {
            this.objectIterator(objStack[objStack.length - 1].children[i], arr, objStack)
          //console.log(objStack[objStack.length - 1],objStack.length);//最后一個 undefined,0
            if(objStack.length===0){break loop;}//新增
          }
          let obj = objStack.pop()
          if (obj.parent && obj.parent.children && Array.isArray(obj.parent.children)) {
            count = obj.parent.children.indexOf(obj) + 1
          } else {
            count = 0
          }
        }

代碼不加分號,可讀性差

伴謊 回答

我今天也遇到了同樣的問題,樓主如何解決的?

你好胸 回答
window.addEventListener("scroll",function(){
            var stop = document.documentElement.clientHeight;
                console.log(stop)
            if(stop > 100 &&  stop< 500){
                
            }
        })

這樣沒問題啊

熟稔 回答

大佬,你的display:flex被你吃了?

.flexItemLast {
    display: flex;
}
氕氘氚 回答

你用的webpack是哪個版本的,最新版的4.0出來了,把HtmlWebpackPlugin舍棄了,需要特別下載才行

$> yarn add html-webpack-plugin@webpack-contrib/html-webpack-plugin
扯不斷 回答
var reg = /\[([^\]]+)\]\([^)]+\)([^\(\[]*)/g;
var item;
while(item = reg.exec(str)){
    console.log(item)
}
舊螢火 回答

store里的state初始值里沒有那些屬性所以報undefined,在computed里 判斷下underfined時 return 空數(shù)組
comptued:{

swiper(){
    const { productsdata }= this.store.state;
    return productsdata ?你的代碼 :【】;
}


大致這樣 手機
你那個state.detail是哪里來的

短嘆 回答

gevent.joinall
英文解釋:Wait for the greenlets to finish.
中文解釋:等待協(xié)程結束

例子:


In [1]: import gevent

In [2]: def solve(i):
   ...:     return i
   ...: 

In [3]: threads = [gevent.spawn(solve,i) for i in range(1,10)]

In [4]: gevent.joinall(threads)
Out[4]: 
[<Greenlet at 0x10eaa8b90>,
 <Greenlet at 0x10eaa8d70>,
 <Greenlet at 0x10eaa8e10>,
 <Greenlet at 0x10eaa8550>,
 <Greenlet at 0x10eaa8a50>,
 <Greenlet at 0x10eaa8690>,
 <Greenlet at 0x10eaa8eb0>,
 <Greenlet at 0x10eaa8f50>,
 <Greenlet at 0x10eaa8c30>]

In [5]: print([t.value for t in threads])
[1, 2, 3, 4, 5, 6, 7, 8, 9]
陪她鬧 回答

package.json 有問題 仔細閱讀第一句報錯

朕略傻 回答

圖片描述

應該是網(wǎng)絡問題吧,看下util.js 1024行。

女流氓 回答

這不是cols的問題,是你沒設置每個item的高度,文本有兩行的時候高度多了,把底下的元素擠走了