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

鍍金池/ 問答/ HTML問答
選擇 回答

同遇到,IOS11,不過我是應(yīng)用切出去,再切回來會(huì)有這個(gè)問題!代碼跟你差不多!

喵小咪 回答

在數(shù)據(jù)請(qǐng)求完成之前做個(gè)loading,不讓用戶跳轉(zhuǎn)。完成后=》有數(shù)據(jù)=》可跳轉(zhuǎn)
一次http請(qǐng)求最多3000ms吧

青裙 回答

用es6的時(shí)候在模塊中import "echarts/map/js/china"; 這個(gè)是echart4.0方法

寫榮 回答

1.首先修改這個(gè)對(duì)象的值肯定是在父組件里修改
2.父組件里提供修改這個(gè)對(duì)象的方法,通過props傳遞給子組件
3.子組件里需要修改的時(shí)候調(diào)用props上傳入的方法

傻叼 回答

1,Jade跟Jsp是同一種東西,服務(wù)端渲染網(wǎng)頁(yè)的模板;
2,優(yōu)勢(shì)在于當(dāng)一個(gè)網(wǎng)站需要做SEO,也就是搜索引擎優(yōu)化的時(shí)候,可以讓爬蟲爬到完整的HTML網(wǎng)頁(yè),而通過Vue、React這樣的前端渲染出的網(wǎng)頁(yè),爬蟲一開始抓到的是內(nèi)容極少的HTML網(wǎng)頁(yè),對(duì)爬蟲不友好;另外,在目前越來越重視前端表現(xiàn)力的今天,后端渲染的劣勢(shì)將會(huì)越來越明顯,除了交互、視覺表現(xiàn)力之外不如前端工程之外,后端渲染將渲染壓力、網(wǎng)絡(luò)帶寬都集中到了服務(wù)端,資源吃緊;
3,Jade是服務(wù)端渲染。

希望能幫助到你。

夏夕 回答

這個(gè)就是典型的事件代理,通過給父層元素來綁定事件來實(shí)現(xiàn)

// 給父層元素綁定事件
document.getElementById('father').addEventListener('click', function (e) {
  // 兼容性處理
  var event = e || window.event;
  var target = event.target || event.srcElement;
  // 判斷是否匹配目標(biāo)元素,注意,<el-button>實(shí)際上也是<button>
  if (target.nodeName.toLocaleLowerCase === 'button') {
    // 做你想做的事兒
    console.log('the content is: ', target.innerHTML);
  }
});
怣人 回答

先看下文檔吧
radius代表半徑
center代表中心坐標(biāo)點(diǎn)
我隨便改了下實(shí)現(xiàn)了6個(gè)在一行,具體的你看完文檔再自己探索

pieFormat=function (obj) {
    if(obj.name=="別人家的孩子"){
         return obj.seriesName+":"+(obj.percent)+"%";
    }
    return obj.name+":"+(obj.percent)+"%";
};

formatValue=function (obj) {
    return formatNumber(obj.value);
};

formatNameValue=function (obj) {
    return obj.name+":"+formatNumber(obj.value);
};


userFormFormat=function (obj) {
    if(obj.name=="干兒子"||obj.name=="親兒子"){
         return obj.seriesName+":"+(obj.percent)+"%";
    }
    return (obj.percent)+"%";
};


formatNumber=function(n){
   var b=parseInt(n).toString();
   var len=b.length;
   if(len<=3){return b;}
   var r=len%3;
   return r>0?b.slice(0,r)+","+b.slice(r,len).match(/\d{3}/g).join(","):b.slice(r,len).match(/\d{3}/g).join(",");
};

option ={
  "title" : {
    "text" : "\n67373觀眾來源:20170212-20170218"
  },
  "legend" : {
    "data" : [ "親兒子", "干兒子", "別人家的孩子", null, null, null, null, null, null, null, null, null, null, null, null ]
  },
  "series" : [ {
    "color" : [ "#86D560", "#AF89D6", "#59ADF3", "#FF999A", "#FFCC67" ],
    "name" : "女流66",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "9297"
    }, {
      "name" : "別人家的孩子",
      "value" : "53057"
    }, {
      "name" : "親兒子",
      "value" : "119032"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : pieFormat,
        "textStyle" : { }
      }
    },
    "radius" : "10%",
    "center" : [ "10%", "30%" ]
  }, {
    "name" : "",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "9297"
    }, {
      "name" : "別人家的孩子",
      "value" : "53057"
    }, {
      "name" : "親兒子",
      "value" : "119032"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : formatValue,
        "textStyle" : {
          "fontSize" : 14,
          "color" : "#777777"
        }
      }
    },
    "radius" : [ "10%", "20%" ],
    "center" : [ "10%", "30%" ],
    "itemStyle" : {
      "normal" : {
        "color" : "#F2F2F2"
      },
      "emphasis" : {
        "color" : "#ADADAD"
      }
    }
  }, {
    "color" : [ "#86D560", "#AF89D6", "#59ADF3", "#FF999A", "#FFCC67" ],
    "name" : "馮提莫",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "8814"
    }, {
      "name" : "別人家的孩子",
      "value" : "113171"
    }, {
      "name" : "親兒子",
      "value" : "119515"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : pieFormat,
        "textStyle" : { }
      }
    },
    "radius" : "10%",
    "center" : [ "25%", "30%" ]
  }, {
    "name" : "",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "8814"
    }, {
      "name" : "別人家的孩子",
      "value" : "113171"
    }, {
      "name" : "親兒子",
      "value" : "119515"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : formatValue,
        "textStyle" : {
          "fontSize" : 14,
          "color" : "#777777"
        }
      }
    },
    "radius" : [ "10%", "20%" ],
    "center" : [ "25%", "30%" ],
    "itemStyle" : {
      "normal" : {
        "color" : "#F2F2F2"
      },
      "emphasis" : {
        "color" : "#ADADAD"
      }
    }
  }, {
    "color" : [ "#86D560", "#AF89D6", "#59ADF3", "#FF999A", "#FFCC67" ],
    "name" : "劉飛兒faye",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "4460"
    }, {
      "name" : "別人家的孩子",
      "value" : "44476"
    }, {
      "name" : "親兒子",
      "value" : "123869"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : pieFormat,
        "textStyle" : { }
      }
    },
    "radius" : "10%",
    "center" : [ "40%", "30%" ]
  }, {
    "name" : "",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "4460"
    }, {
      "name" : "別人家的孩子",
      "value" : "44476"
    }, {
      "name" : "親兒子",
      "value" : "123869"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : formatValue,
        "textStyle" : {
          "fontSize" : 14,
          "color" : "#777777"
        }
      }
    },
    "radius" : [ "10%", "20%" ],
    "center" : [ "40%", "30%" ],
    "itemStyle" : {
      "normal" : {
        "color" : "#F2F2F2"
      },
      "emphasis" : {
        "color" : "#ADADAD"
      }
    }
  }, {
    "color" : [ "#86D560", "#AF89D6", "#59ADF3", "#FF999A", "#FFCC67" ],
    "name" : "趙小臭",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "3061"
    }, {
      "name" : "別人家的孩子",
      "value" : "29294"
    }, {
      "name" : "親兒子",
      "value" : "125268"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : pieFormat,
        "textStyle" : { }
      }
    },
    "radius" : "10%",
    "center" : [ "55%", "30%" ]
  }, {
    "name" : "",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "3061"
    }, {
      "name" : "別人家的孩子",
      "value" : "29294"
    }, {
      "name" : "親兒子",
      "value" : "125268"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : formatValue,
        "textStyle" : {
          "fontSize" : 14,
          "color" : "#777777"
        }
      }
    },
    "radius" : [ "10%", "20%" ],
    "center" : [ "55%", "30%" ],
    "itemStyle" : {
      "normal" : {
        "color" : "#F2F2F2"
      },
      "emphasis" : {
        "color" : "#ADADAD"
      }
    }
  }, {
    "color" : [ "#86D560", "#AF89D6", "#59ADF3", "#FF999A", "#FFCC67" ],
    "name" : "萌面酥",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "2064"
    }, {
      "name" : "別人家的孩子",
      "value" : "45268"
    }, {
      "name" : "親兒子",
      "value" : "126265"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : pieFormat,
        "textStyle" : { }
      }
    },
    "radius" : "10%",
    "center" : [ "70%", "30%" ]
  }, {
    "name" : "",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "2064"
    }, {
      "name" : "別人家的孩子",
      "value" : "45268"
    }, {
      "name" : "親兒子",
      "value" : "126265"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : formatValue,
        "textStyle" : {
          "fontSize" : 14,
          "color" : "#777777"
        }
      }
    },
    "radius" : [ "10%", "20%" ],
    "center" : [ "70%", "30%" ],
    "itemStyle" : {
      "normal" : {
        "color" : "#F2F2F2"
      },
      "emphasis" : {
        "color" : "#ADADAD"
      }
    }
  }, {
    "color" : [ "#86D560", "#AF89D6", "#59ADF3", "#FF999A", "#FFCC67" ],
    "name" : "丸子喲",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "1790"
    }, {
      "name" : "別人家的孩子",
      "value" : "29243"
    }, {
      "name" : "親兒子",
      "value" : "126539"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : pieFormat,
        "textStyle" : { }
      }
    },
    "radius" : "10%",
    "center" : [ "85%", "30%" ]
  }, {
    "name" : "",
    "type" : "pie",
    "data" : [ {
      "name" : "干兒子",
      "value" : "1790"
    }, {
      "name" : "別人家的孩子",
      "value" : "29243"
    }, {
      "name" : "親兒子",
      "value" : "126539"
    } ],
    "label" : {
      "normal" : {
        "position" : "inner",
        "formatter" : formatValue,
        "textStyle" : {
          "fontSize" : 14,
          "color" : "#777777"
        }
      }
    },
    "radius" : [ "10%", "20%" ],
    "center" : [ "85%", "30%" ],
    "itemStyle" : {
      "normal" : {
        "color" : "#F2F2F2"
      },
      "emphasis" : {
        "color" : "#ADADAD"
      }
    }
  } ],
  "tooltip" : {
    "trigger" : ""
  },
  "toolbox" : { },
  "color" : [ "#c23531", "#2f4554", "#61a0a8", "#d48265", "#91c7ae", "#749f83", "#ca8622", "#bda29a", "#6e7074", "#546570", "#c4ccd3" ]
}
萢萢糖 回答

axios 的攔截器是為了統(tǒng)一處理參數(shù)(添加 token ),以及處理返回的數(shù)據(jù)
beforeEach 鉤子里面根據(jù)返回的權(quán)限數(shù)據(jù)判斷是否要跳轉(zhuǎn)路由。。


莫非你想。。。。
要在每個(gè)組件的 created 鉤子里面判斷權(quán)限?
在發(fā)送請(qǐng)求的時(shí)候每次添加 token 等通用參數(shù)?

清夢(mèng) 回答
FilterBar.prototype = {
    init: function() {
        const _this = this;     // <---

        $(this.$btn).click(function(e) {
            _this.options.callback();   // <---
        });
    }
}

或者干脆用 ES6 的 Lambda,連 _this 都可以省了

FilterBar.prototype = {
    init: function() {
        $(this.$btn).click(e => {
            this.options.callback(e);
        });
    }
}
心上人 回答

你可以用鉤子判斷是從哪個(gè)route回到的購(gòu)物車,如果是支付頁(yè)面,則直接跳到個(gè)人中心或者商品頁(yè)面

久礙你 回答

很明顯這個(gè)api不支持jsonp的調(diào)用方式,后端應(yīng)用程序需要接收一個(gè)callback回調(diào)的函數(shù)名,其次需要添加Access-Control-Allow-Origin響應(yīng)頭,你可以讓后臺(tái)幫你請(qǐng)求,然后給你提供ajax請(qǐng)求接口。PS:樓上回答我也是醉了,有測(cè)試過嗎?亂放一堆錯(cuò)誤代碼。

萌二代 回答

我遇到過同樣問題,我的做法是讓頁(yè)面用animation向上移動(dòng)那個(gè)提交button被遮擋的高度就ok

賤人曾 回答

囧,這問題太泛了,不好答。
簡(jiǎn)單點(diǎn)你中以直接上uglify和gzip壓縮,
更細(xì)的的,得看到你當(dāng)前的配置了

局外人 回答

不會(huì)是死循環(huán),將會(huì)返回NaN
對(duì)象隱式轉(zhuǎn)換為Number是下面流程
第一步: 調(diào)用 valueOf(), 如果返回基本類型,按照基本類型轉(zhuǎn)換規(guī)則。 不執(zhí)行第二步
第二步: 調(diào)用 valueOf()返回的是自身,就調(diào)用toString,那么返回的字符串一般是"[object XXXX]"。 再對(duì)字符串進(jìn)行基本規(guī)則轉(zhuǎn)換,也就是 NaN
https://segmentfault.com/a/11...

墨小白 回答

應(yīng)該是打出來了一個(gè)吧。
jquery對(duì)dom數(shù)組取值的時(shí)候只會(huì)獲取第一個(gè)dom的屬性。
所以遍歷輸出吧。

笨笨噠 回答

用的是 mac 吧,手動(dòng)在 vscode 的配置文件里面寫上 node 的路徑

怣人 回答

React 中的標(biāo)簽組件繼承了html 標(biāo)簽的屬性。如果html標(biāo)簽沒有屬性,會(huì)被自動(dòng)忽略掉。
你可以變通一下,用已有的事件來代替,不要照搬vue的東西。