項(xiàng)目地址,是這個吧?
跑了一下,你把img樣式上那個height:100%;
直接刪掉就行了……
了解一下,查看源碼的時候就會發(fā)現(xiàn)數(shù)字用了 & #xf37c;& #xecb1;& #xf3eb;.& #xedbd;& #xf3eb;代替,并不是字體圖片。
因?yàn)閔ula不是你的github name
webpack 里面的是在編譯期給你報錯用的,報錯了會停止編譯,直到你修復(fù)。
vscode中的是提示給你看的,方便你直接看到錯誤。順便會幫你修復(fù)簡單的錯誤。
沖突是會有的,不過都是可配置的,不會配置的話就先去拿一份別人配置好的來用
原生js直接寫是需要帶on
前綴的。onkeydown
、onclick
如果是addEventListener
的就不需要on
前綴
document.body.onkeydown = function(){
if (event.keyCode == "13") {//keyCode=13是回車鍵
document.getElementById('btnSumit').onclick();
}
}
------
document.body.addEventListener("keydown",function(){
if (event.keyCode == "13") {//keyCode=13是回車鍵
document.getElementById('btnSumit').onclick();
}
},false)
你是要再循環(huán)渲染el-switch么? 如果是,確保up.value是對象或者是數(shù)組再次v-for就好。參考一下
<ul class="HRcertifyUl_out" v-for="(item,index) in certifyList" :key="index">
<li class="HRcertifyLi_out" v-for="(itemL2,indexL2) in item.innerList2" :class="{active:itemL2.active}" :key="indexL2">
<div class="HRoutTopArea" @click="listOutClick(item,itemL2)">
<div class="HRoutBorderDiv">
<div class="HRoutIcon">
<Icon :type="itemL2.leftIcon" size="48"></Icon>
</div>
<div class="HRoutText">
<p class="cnText">{{itemL2.tittle}}</p>
</div>
<div class="HRoutArrowIcon">
<Icon :type="itemL2.active?itemL2.rightIconActive:itemL2.rightIcon"></Icon>
</div>
</div>
</div>
<div class="HRoutBottomArea">
<ul class="HRcertifyUl_in">
<li
class="HRcertifyLi_in"
:class="{active:itemL3.active}"
v-for="(itemL3,indexL3) in itemL2.list3"
:key="indexL3"
v-touch-ripple
@click="listInClick(itemL3,indexL3);">
{{itemL3.name}}
</li>
</ul>
</div>
</li>
</ul>
你這個時間范圍rules使用的什么表單驗(yàn)證插件啊?求教~~
不知道是不是生命周期的問題,
把mounted中的方法放到了updated中就能夠調(diào)用了
1.promise化
function util() {
return new Promise((resolve, reject) => {
let reader = new FileReader()
reader.onload = function (e) {
let data = e.target.result
let img = new Image()
img.src = data
img.onload = function () {
resovle({
width: img.width,
height: img.height
})
console.log('width', img.width)
console.log('height', img.height)
}
}
reader.readAsDataURL(file)
})
}
2.調(diào)用
async function getImg() {
let img = await util()
console.log('width', img.width)
console.log('height', img.height)
}
mozilla的文檔這樣寫
When both top and bottom are specified, as long as height is
unspecified, auto, or 100%, both top and bottom distances will be
respected. Otherwise, if height is constrained in any way, the top
property takes precedence and the bottom property is ignored.
也就是,你的后一種寫法可能導(dǎo)致div的大小拉大為全屏,如果div大小已經(jīng)被限制住,right和bottom會被忽略。
git log 看一下日志
然后git reset --hard 日志
開發(fā)者工具的模擬不一定是百分之百正確的
還是不用要用'a'吧, 生成key值也麻煩, 用map, 索引做key
var newArr = [1,2,3].map(function(v, idx){
var obj = {};
obj[idx] = v;
return obj;
});
瀏覽器端 也就是js api的
用css定位不行嗎
通過mixins混合
加個 props: ['reportType'], 使用的時候 this.reportType就好
//這里設(shè)置
app.get('/getDiscList', function (req, res) {...})
//apiRoutes 改成app試試
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。