樓主這個問題解決了沒?最近也遇到這個問題了。
1.在其他瀏覽器比如chrome里看看請求返回的信息對不對
2.猜測很大原因是因?yàn)榭缬蛄耍O(shè)置一下請求頭
可能是依賴沖突?
已解決,綁定到操作
剛剛做過和你這個差不多的。。。
未選擇的按鈕class為detail-btn
,選擇后class為detail-btn detail-selected
html:
<div class="detail-btn" @click="chooseOrder($event)"></div>
css:
.detail-btn{
width: .43rem;
height: .45rem;
background: url(../images/list-no.png) no-repeat;
background-size: 98%;
}
.detail-selected{
background: url(../images/list-select.png) no-repeat;
background-size: 98%;
}
js:
chooseOrder:function(e){
if (e.target.className.indexOf("detail-selected") == -1) {
e.target.className = "detail-btn detail-selected"; //切換按鈕樣式
//寫邏輯
} else {
e.target.className = "detail-btn";//切換按鈕樣式
//寫邏輯
}
},
一樓正解,字符串沒有減去的概念,可以是替換為空字符串。
大佬,你的display:flex
被你吃了?
.flexItemLast {
display: flex;
}
openid是用戶對于公眾號的唯一標(biāo)識,這玩意需要登陸授權(quán)的,
建議你看下這個微信網(wǎng)絡(luò)授權(quán)
// 1、定義這兩個函數(shù)
function touchEventToMouseEvent(event, eventType) {
if (!event.originalEvent || !event.originalEvent.targetTouches || event.originalEvent.targetTouches.length != 1)
return false;
var te = event.originalEvent.targetTouches[0];
var clientX = te.clientX, clientY = te.clientY, screenX = te.screenX, screenY = te.screenY;
var simEvent = new MouseEvent(eventType, {
clientX: clientX,
clientY: clientY,
screenX: screenX,
screenY: screenY,
button: 0,
buttons: 0
});
return simEvent;
}
function findElm(targetElement) {
targetElement.on('touchstart', function (e) {
console.log('touchstart');
console.log(e);
var simEvent = touchEventToMouseEvent(e, 'mousedown');
if (simEvent != null) {
$(this)[0].dispatchEvent(simEvent);
}
});
targetElement.on('touchmove', function (e) {
e.preventDefault();
console.log('touchmove');
var simEvent = touchEventToMouseEvent(e, 'mousemove');
if (simEvent != null) {
$(this)[0].dispatchEvent(simEvent);
}
});
targetElement.on('touchend', function (e) {
console.log('touchend');
console.log(e);
var simEvent = touchEventToMouseEvent(e, 'mouseup');
if (simEvent != null) {
$(this)[0].dispatchEvent(simEvent);
}
});
}
// 2、執(zhí)行 findElm(selectorElement) 即可將移動端的touch
findElm(selectorElement);
你看看你頁面是不是用了submit和form標(biāo)簽。
思路:獲取input的輸入內(nèi)容,然后調(diào)用下面的函數(shù),把內(nèi)容作為文本下載
關(guān)鍵代碼:
// fileName 是文件名,可以自定義,如 abc.txt
// content 是input輸入的內(nèi)容
createAndDownloadFile=function(fileName, content) {
const aTag = document.createElement('a');
const blob = new Blob([content]);
aTag.download = fileName;
aTag.href = URL.createObjectURL(blob);
aTag.click();
URL.revokeObjectURL(aTag.href);
}
http://localhost:3000/index.php?m=index&a=home#/
m=index&a=home 這個是get請求的參數(shù)吧,帶不帶應(yīng)該無所謂。
如果是后臺需要你在訪問這兩個頁面的時(shí)候傳入這個,我覺的這是后臺設(shè)計(jì)上的問題
http://localhost:3000這場這個形式可以,是因?yàn)槟阍L問這個網(wǎng)址,會默認(rèn)把當(dāng)前網(wǎng)址下面的index.html返回給你。
而php應(yīng)該只需要配置一下就好了。
$OPTIONS
這個環(huán)境變量沒指定?
估計(jì)是無窮遞歸了, 查查調(diào)用棧
只要在本地測試成功,commit,push之后,鉤子自動同步到服務(wù)器,不能直接修改服務(wù)器上的文件,否則協(xié)同開發(fā)豈不是亂套了。
我嘗試寫了一下,你看一下對不對
ip=$1
mask=$2
out=''
for index in {1..4}; do
si=$(echo $ip | cut -d "." -f $index)
sm=$(echo $mask | cut -d "." -f $index)
if [ $index -ne 1 ]
then
out="$out."
fi
out="$out$[$si&$sm]"
done
echo $out
北大青鳥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)師。