$_SERVER['HTTP_USER_AGENT'];
"scripts": {
"dev": "node build/dev-server.js",
// "kk": "node build/dev-server.js",
"build": "node build/build.js",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
},
不要亂改啟動(dòng)配置
<textarea placeholder="說(shuō)點(diǎn)什么......" autofocus="autofocus"></textarea>
網(wǎng)上找的,你試試行不,給個(gè)回復(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>
<style>
.hide {
display: none;
}
.square {
background-color: #fff;
border: 1px solid #bfbfbf;
display: inline-block;
height: 0.9em;
padding: 2px;
border-radius: 100%;
margin-right: 5px;
margin-top: -2px;
vertical-align: middle;
width: 0.9em;
line-height: 1;
box-sizing: content-box;
}
.hide:checked+.square:after {
background-color: #ffd958;
content: "";
display: inline-block;
height: 0.9em;
width: 0.9em;
vertical-align: top;
border-radius: 100%;
}
</style>
</head>
<body>
<label>
<input class="hide" type="radio" name="sex" id="tbb">
<span class="square"></span>
<span>b</span>
</label>
<label>
<input class="hide" type="radio" name="sex" id="tbg">
<span class="square"></span>
<span>g</span>
</label>
</body>
</html>
element-ui貌似沒(méi)有縱向表頭樣式,還是自己實(shí)現(xiàn)吧。
在 v-if 后面的條件發(fā)生變化時(shí)調(diào)用 nextTick 設(shè)置回調(diào)函數(shù)即可。
比如:
<template>
<div v-if="isDisplay">Example</div>
</template>
<script>
export default {
data() {
return {
isDisplay: false
}
},
mounted() {
this.$http({
method: 'GET'
url: 'api.test.com'
}).then(res => {
// 更新數(shù)據(jù)
this.isDisplay = res.data.isDisplay;
// 此時(shí) DOM 還沒(méi)有更新,設(shè)置回調(diào)函數(shù)
this.$nextTick(function () {
// 此時(shí)已經(jīng)渲染完成
});
});
}
}
</script>同樓上,最好使用數(shù)組來(lái)組織你的結(jié)構(gòu),確保遍歷的有序。
布爾轉(zhuǎn)換,或是一個(gè)函數(shù)一個(gè)條件
你說(shuō)的是 options吧?這個(gè)是檢查跨域的 不用在意
type-radio js-type-radio這兩個(gè)重復(fù)的,寫(xiě)死就好了啊, 判斷那個(gè)多出來(lái)的,要么加上,要么為“”
點(diǎn)那個(gè)小箭頭
box-shadow僅僅支持iOS
http://weex.apache.org/cn/wik...
444熱天熱天
因?yàn)槟阕咏M件使用了v-for,這樣會(huì)導(dǎo)致你子組件的 first-keng-->slot 重復(fù)定義,warning就是說(shuō)你重復(fù)定義first-keng
canvas measureText 方法可以事先獲取文字畫(huà)出來(lái)的長(zhǎng)度 根據(jù)這個(gè)長(zhǎng)度 你可以動(dòng)態(tài)改變寬度 以及位置去在canvas顯示 如果是改變input的長(zhǎng)度 你可以用相同的字體樣式 寫(xiě)入一個(gè)div 去獲取div的長(zhǎng)度 來(lái)動(dòng)態(tài)改變input
因?yàn)槟銥?code>this.__proto__添加了myFunction和showScreen兩個(gè)key啊...在遍歷的時(shí)候就會(huì)輸出兩個(gè)吶...
那我改出來(lái)一個(gè)大致能滿足你的需求的版本,你可以瞧一眼...
<script>
function a() {
console.log("I'am a function.");
}
//b是實(shí)例化對(duì)象,a是構(gòu)造函數(shù)
var b = new a();
//console.log(b.__proto__)
var $ = function() {
extend = function(obj)
{
console.log(obj)
console.log('擴(kuò)展')
for(var key in obj)
{
console.log('key');
console.log(key);
console.log('obj');
console.log(obj);
// this.__proto__[key]=obj[key];
}
}
return { extend : extend };
}();
$.extend({
myFunction:function(obj)
{
console.log('我函數(shù)')
}
})
console.log('第二次')
$.extend({
showScreen:function(obj)
{
console.log('展示的大屏幕')
}
})
// $.showScreen;
// $.myFunction;
</script>可以嘗試<keep-alive>進(jìn)行緩存,或者后退到B時(shí)重新渲染B里的數(shù)據(jù)
toggleClass的用法就是,如果你選擇的頁(yè)面元素中存在class屬性,那就去掉calss屬性;如果不存在class屬性,就添加class屬性。
<a class="glyphicon glyphicon-chevron-down" id="row"></a>
$("#row").click(function(){
$(this).toggleClass('glyphicon glyphicon-chevron-up');
})
點(diǎn)擊一次的時(shí)候,代碼去掉 ‘glyphicon’ 加上 ‘glyphicon-chevron-up’
代碼變成了
<a class="glyphicon-chevron-down glyphicon-chevron-up" id="row"></a>
所以圖標(biāo)顯示不出來(lái)
要想實(shí)現(xiàn)切換可以改成
$("#row").click(function(){
$(this).toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
})
北大青鳥(niǎo)APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專(zhuān)業(yè)的國(guó)家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
北大課工場(chǎng)是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國(guó)家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國(guó)制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國(guó)職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開(kāi)發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dò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ù), 熟練的跨平臺(tái)面向?qū)ο箝_(kāi)發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫(kù),具有快速界面開(kāi)發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁(yè)制作和網(wǎng)頁(yè)游戲開(kāi)發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開(kāi)發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問(wèn),美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。