應(yīng)該是需要安裝相應(yīng)插件吧。
應(yīng)該是你pageCount屬性前邊沒加:
,加上就好了
沒加表示接受的是字符串,加上會解析為數(shù)字
你好,我最近也遇到了這個問題,應(yīng)該是spring的p標(biāo)簽的地址變了,我還沒找到新地址,我用傳統(tǒng)方法替代了,刪掉xmlns:p="http://www.springframework.org/schema/p"即可。比如:
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:viewClass="org.springframework.web.servlet.view.JstlView"
p:prefix="/WEB-INF/jsp/"
p:suffix=".jsp" />
等價于
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
你為什么糾結(jié)這個寫法呢?
其實就是
<App></App>
的簡寫。html標(biāo)簽</>意味著閉合,vue支持組件簡寫
我的做法就是 v-if=false 延時一會 v-if=true
估計是 冒泡了,建議使用 mouseenter,mouseleave 替代
單頁的應(yīng)用每個頁面里都需要單獨配置分享信息
上面兩個回答,答非所問啊,不覺得,呃。。。算了= =
這兩個例子vertical-align:middle的功勞。
看著什么垂直的樣式都沒設(shè)置,但仍然垂直居中了對吧?不過在chrome devtool里看看樣式就知道了。
而tr和td的vertical-align都是inherit,繼承了這個樣式。所以就垂直居中了。
原本before和after是基線對齊,但是設(shè)置height:100%并且將vertical-align設(shè)為middle后,其實已經(jīng)超出父元素的框了。但是父元素為了能包容它們,向下移動了基線(?),導(dǎo)致中線也下移,然后就讓child也垂直居中了。這個可能沒法理解,等會兒我畫個圖更新下答案吧。
先看一個demo
我加了一個x看基線位置。
第一步中,僅設(shè)置了before屬性height:100%。x、before和child都是相對于基線對齊。
第二步中,給before設(shè)置了vertical-align:middle后,效果應(yīng)該是:
這時,before的middle線要與父元素的middle線,也就是x的交叉處對齊,但這導(dǎo)致它超過了父元素的上邊界。這時我覺得CSS或者是HTML有一個智能的地方就是為了包裹子元素,自動將父元素的middle線下移到合適位置。于是就變成了demo中的第二步。也就實現(xiàn)垂直居中了。
document.querySelector("#id").style.float = "right"
這樣設(shè)置沒有問題啊
store
被修改了?
給運行正常的代碼:
store.js
import {createStore, applyMiddleware, compose} from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import YourReducer from '../reducers/YourReducer.js'; //import your reducer
let createStoreWithMiddleware = null;
if(process.env.NODE_ENV === 'production') {
createStoreWithMiddleware = compose(applyMiddleware(
thunkMiddleware
))(createStore);
} else {
createStoreWithMiddleware = compose(applyMiddleware(
thunkMiddleware,
createLogger()
), window.devToolsExtension ? window.devToolsExtension() : f => f)(createStore);
}
export default (initState) => {
return createStoreWithMiddleware(YourReducer, initState);
}
index.js
import {Provider} from 'react-redux';
import store from './stores/store.js';
<Provider store={store()}>
//...
</Provider>
can2 = JSON.stringify(can2);
can3 = JSON.stringify(can3);
can4 = JSON.stringify(can4);
layout_str = can2.substring(0, can2.length - 1) + ',' + can3.substring(1, can3.length - 1)+','+ can4.substring(1, can4.length);
得到了想要的結(jié)果
[{"type":2,"enabled":1,"channel_list":[{"channel_id":"","template":"15"},{"channel_id":"","template":"17"},{"channel_id":"","template":"14"},{"channel_id":"","template":"16"},{"channel_id":"","template":"14"}]},{"type":2,"enabled":1,"channel_list":[{"channel_id":"","template":"15"},{"channel_id":"","template":"17"},{"channel_id":"","template":"14"},{"channel_id":"","template":"16"},{"channel_id":"","template":"14"}]},{"type":3,"enabled":1,"channel_list":[{"channel_id":"1091991"},{"channel_id":"1091993"}]}]
但是剛開始
can2 = JSON.stringify(can2);
can3 = JSON.stringify(can3);
can4 = JSON.stringify(can4);
console.log(can2+','+ can3+','+ can4);
結(jié)果
[{"type":2,"enabled":1,"channel_list":[{"channel_id":"","template":"15"},{"channel_id":"","template":"17"},{"channel_id":"","template":"14"},{"channel_id":"","template":"16"},{"channel_id":"","template":"14"}]}],[{"type":2,"enabled":1,"channel_list":[{"channel_id":"","template":"15"},{"channel_id":"","template":"17"},{"channel_id":"","template":"14"},{"channel_id":"","template":"16"},{"channel_id":"","template":"14"}]}],[{"type":3,"enabled":1,"channel_list":[{"channel_id":"1091991"},{"channel_id":"1091993"}]}]
沒想到好辦法,然后就用截取字符串的辦法了
<template>
<div>
<ul class="list">
<li class="item" v-for="(item,index) in data" :key="index">{{item.name}}</li>
</ul>
<div class="box">
<input type="text" v-model="item">
<button @click="click">確定</button>
</div>
</div>
</template>
<script>
export default {
data() {
return {
data: [],
item: "",
};
},
methods: {
click() {
this.data.push({
name: this.item,
});
this.item = "";
}
}
};
</script>
<style lang="scss">
.list {
clear: box;
.item {
padding: 10px;
border: 1px solid #ccc;
display: inline-block;
margin: 5px;
&:last-child {
border-color: #f00;
}
}
}
</style>
大概就是上面的思路
我之前開發(fā)的時候,Window 上默認(rèn)支持"復(fù)制粘貼等快捷鍵"的,而MacOS 不支持,所以需要對 MacOS 進行顯示添加。
所以當(dāng)時就對系統(tǒng)進行了判斷,https://github.com/o2team/xce...
現(xiàn)在我發(fā)現(xiàn) Electron 更新比較多。你可以看看官網(wǎng)下的 https://electronjs.org/ 的一個鏈接,關(guān)于主要的 API 案例和代碼實現(xiàn),你可以下載下來看看,https://electron-api-demos.gi...
另外,也可以開啟“開發(fā)者模式”,看看打包后時候有報錯的情況出現(xiàn)。
感謝邀請。
多多嘗試自查問題嘛...
mongodb
是否正確安裝。 --- 檢查目錄mongodb
服務(wù)是否正確啟動。 --- lsof -i:27017
查看27017端口是否有東東httpinterface
都沒問題了...你在連接試試
使用安卓手機,打開開發(fā)者選項,啟動USB調(diào)試,通過數(shù)據(jù)線連接至電腦。通過 ionic cordova run android
把APP打包安裝至手機,并打開,在Chrome瀏覽器中輸入:chrome://inspect
進入調(diào)試,第一次打開需要翻墻。然后就可以在瀏覽器中打斷點調(diào)試在手機上的APP了。
服務(wù)端加上一個允許跨域的響應(yīng)頭就好了
你的index函數(shù)是render渲染的cmdb/index.html
這個模板文件,但是你的url設(shè)置中,綁定的路由到這個視圖的的url是cmdb/,而且不是正則匹配,是完整匹配,訪問cmdb/index.html
當(dāng)然會報404了。
另外不太清楚你的具體需求是什么,如果你要訪問cmdb/index.html
打開首頁,完全可以把url改成cmdb/index.html
打印SessionListener...... 只能說明這個監(jiān)聽器被spring容器歸納,因為你這句是在構(gòu)造函數(shù)里。
除了寫一個@WebListener的類之后。還需要configuration配置這個監(jiān)控器
北大青鳥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
中公教育集團創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團,成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達內(nèi)教育集團成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(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é)及管理工作。
浪潮集團項目經(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)師。