你可以使用數(shù)組的 .find() 方法
const target = column.find(item => item.dataIndex === 'hphm')
如果 target 不為 undefined 的話就是有的
SetValue('Att_Sys_zh-cn_304_G','RISYM/維芯') ;
SetValue('Att_Sys_zh-cn_141_G','12*12*5') ;
這兩段結(jié)尾分號前還有一個空格,可以使用replace(' ','')來去掉多余的空格,之后就可以正常匹配了。
.component {
$c: &;
padding: 2vw;
&__card {
background-color: #fff;
&::hover {
#{$c}__name {
color: #bada55;
}
}
}
&__name {
color: #000;
}
&__button {
background-color: blue;
color: #fff;
}
}
記錄開始倒計時的時間,然后每一次倒計時,按照倒計時總時間 - (當(dāng)前時間-開始時間)得到剩余時間;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
li{
float: left;
line-break: 30px;
list-style-type: none;
margin-right: 5px;
cursor: pointer;
text-align: center;
color: lightcoral;
}
li:first-of-type{
border-right: none;
color: lightgreen;
}
li:last-of-type{
color: lightblue;
}
.bottomLine{
position: fixed;
height: 1px;
transition: 0.3s all ease-in-out;
pointer-events: none;
}
</style>
</head>
<body>
<div class="bottomLine"></div>
<head>
<ul>
<li class="current">news</li>
<li>product</li>
<li>service</li>
</ul>
</head>
<script type="text/javascript" src="jquery-1.10.2.min.js" ></script>
<script>
$(document).ready(function(){
change();
function change(bold){
if(bold){
$('.bottomLine').css("height","5px")
}
var oLeft=$(".current").offset().left;
var oTop=$(".current").offset().top;
var height=$(".current").height();
var width=$(".current").width();
var color=$(".current").css('color')
console.log(color)
$('.bottomLine').css({'background-color':color,'left':oLeft,'top':oTop+height,'width':width+'px'});
}
$('ul').mouseover(function(e){
console.log(e.target)
$('li').removeClass('current');
$(e.target).addClass('current');
change(true);
})
})
</script>
</body>
</html>
云端還是原生?云端應(yīng)該不成問題,原生的估計要稍等一下各個框架的API適配。
border-image實現(xiàn),要圓角的話還要嵌套一層標(biāo)簽
button{
background: #ffffff;
outline: none;
width: 100px;
height: 36px;
border: none;
border-radius: 14px;
overflow: hidden;
cursor: pointer;
}
button span{
height: 100%;
width: 100%;
display: block;
border: 2px solid transparent;
border-image: linear-gradient(60deg, #16d5be , #18c8cc) 2;
box-sizing: border-box;
line-height: 32px;
color: #16d5be;
}
<button><span>了解更多</span></button>createCheckbox(document.getElementById('product-radio-wrapper'),['手機(jī)','筆記本','智能音箱'],'product');
function createCheckbox(id,arr,name) {
var len = arr.length,
i,
label;
for (i = 0 ;i < len;i++) {
var div = document.createElement('div');
var cbox = document.createElement('input');
var label = document.createElement('label');
label.innerText = arr[i];
cbox.type = 'checkbox';
cbox.value = arr[i];
cbox.name = name;
cbox.innerHTML = arr[i];
div.appendChild(label);
div.appendChild(cbox);
id.appendChild(div);
}
}可以通過 id 建立關(guān)聯(lián),
{
[id]:{
imgurl:'xxx'
...其他數(shù)據(jù)
}
...
}
當(dāng)編輯數(shù)據(jù)保存時,找到對應(yīng) id 進(jìn)行數(shù)據(jù)賦值即可
你別document.write呀,你把節(jié)點append加進(jìn)去。如果是廣告里面執(zhí)行了document.write那就沒辦法了
嗯,你可以搞個iframe專門放廣告。然后你這邊用這個iframe
1 首先跟后臺確認(rèn)是否返回了你要的cookie信息,問清楚放在哪里面返回的。
2 認(rèn)真檢查你console.log的res 里面。
https://blog.csdn.net/lohiauf...
swiper4的寫法已經(jīng)換成:
on:{
slideChangeTransitionEnd: function(){
alert(this.activeIndex);//切換結(jié)束時,告訴我現(xiàn)在是第幾個slide
},
touchMove: function(event){
//你的事件
}
}
詳情看:Swiper4的API變化
// build/webpack.dev.conf.js
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true,
favicon: path.resolve('favicon.ico') // 加上這個
})d3.js?
在地圖上倒好做了,德高百度啥的直接有現(xiàn)成的接口,設(shè)定路徑就行了。
FormControl.setErrors({key:value})設(shè)置的表單控件錯誤信息,可以通過FormControl.errors[key]獲取,如果沒有error,就返回null。
return的話,return null代表表單控件驗證通過,你上面的代碼可以這么寫:
return flag? null : { mobileValidator: false};
setErrors()這個設(shè)置與否其實沒多大關(guān)系,你知道你返回的錯誤信息是什么就好,就是說你也可以通過FormControl.errors[key]獲取的,這個key就是上面的mobileValidator,value可以是任意類型數(shù)據(jù),你上面的false,也可以設(shè)成對象,字符串等。
jinja模板中把a(bǔ)ngular語法拼接上去不就好了
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國制造2025”,實現(xiàn)中華民族偉大復(fù)興的升級產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。