每次提交代碼時(shí)需要輸入用戶名密碼,則說明你在從倉庫中clone代碼時(shí)使用的是HTTPS的key進(jìn)行拉取代碼。而使用SSH key拉取代碼時(shí),則不需要。
.git-credentials 存儲(chǔ)GIT用戶名和密碼
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com //文件內(nèi)容
git config --global credential.helper storechange事件觸發(fā) 把file對(duì)象添加到一個(gè)數(shù)組 然后最后上傳 上傳你的數(shù)組就好了(不一定數(shù)組 看你的數(shù)據(jù)格式定義)
微信開放平臺(tái)添加網(wǎng)站應(yīng)用
直接上代碼
io.on('connection', function (socket) {
console.log('connect: ' + socket.id); // 參數(shù) socket 為連接對(duì)應(yīng)的socket
socket.on('disconnect', function () { // 這里監(jiān)聽 disconnect,就可以知道誰斷開連接了
console.log('disconnect: ' + socket.id);
});
});var $aniCover = $('.layout_help_cover');
$('.help_cover').on({
mouseenter: function() {
$aniCover.fadeIn();
},
mouseleave: function() {
$aniCover.fadeOut();
},
});
個(gè)人覺得jQ的事件簡(jiǎn)寫其實(shí)很雞肋。。。(當(dāng)然放在文檔里提醒你有什么事件可以用這點(diǎn)還是有一定現(xiàn)實(shí)意義的。)
按我的理解:
在AndroidN前 如果你的Context 不是Activity 并且沒有使用FLAG_ACTIVITY_NEW_TASK ,則 會(huì)禁止啟動(dòng),并向系統(tǒng)輸出日志
而Android N中 這個(gè)FLAG沒有生效,導(dǎo)致了與預(yù)期不同的結(jié)果,而目前修復(fù)了這個(gè)bug
我一般用scp或者git傳輸文件
如果需要自動(dòng)輸密碼可以用pexpect
如果是自動(dòng)化運(yùn)維可以用fabric
用Route和Link就能實(shí)現(xiàn),具體是tab選項(xiàng)用Link標(biāo)簽,切換的具體內(nèi)容,以組件的形式綁定到Route
ios 下的 fixed 是假的,感覺上是通過絕對(duì)定位做的東西
可以在body下絕對(duì)定位一個(gè)100%大小的div,來實(shí)現(xiàn)這種全屏的覆蓋
要注意的就是這時(shí)候的body就不能滾動(dòng)了,得用div滾動(dòng)
html
body
div.fixed
div.scroll
css
html,body,.scroll
width:100%
height:100%
overflow:hidden
position:relative
.scroll
overflow:auto
.fixed
position:absolute
width:100%
height:100%我會(huì)寫在一個(gè)組件中,左側(cè)是一個(gè) tab,右邊是動(dòng)態(tài)組件,
<template>
<div class="tabs">
<tab-item
v-for="tab in tabs"
@click.native="onTabClick(tab)">
</div>
<components :is="currentTab.component">
</template>
<script>
export default {
data() {
return {
tabs: [
{
name: 'a',
component: 'cpA'
}
],
currentTab: {
name: 'a',
component: 'cpA'
}
}
},
methods: {
onTabClick(tab) {
this.currentTab = tab
}
}
}
</script>
簡(jiǎn)單幫你擼了一下,差不多就是這樣。
贈(zèng)送一個(gè)鏈接https://blog.csdn.net/ssh159/...
class肯定可以被引用多次的,在入口文件導(dǎo)入兩個(gè)模塊。
import './UserService'
import './TestService'
兩個(gè)都有輸出,如下所示。
1、如果你是用的androidstudio,請(qǐng)安裝插件 gsonformat (file-settings-plugins,搜索庫)
2、添加依賴 compile 'com.alibaba:fastjson:1.1.56.android' ;
3、送你代碼
public class FastJsonUtils {
/**
* 功能描述:把JSON數(shù)據(jù)轉(zhuǎn)換成普通字符串列表
*
* @param jsonData
* JSON數(shù)據(jù)
* @return
* @throws Exception
* @author myclover
*/
public static List<String> getStringList(String jsonData) throws Exception {
return JSON.parseArray(jsonData, String.class);
}
/**
* 功能描述:把JSON數(shù)據(jù)轉(zhuǎn)換成指定的java對(duì)象
*
* @param jsonData
* JSON數(shù)據(jù)
* @param clazz
* 指定的java對(duì)象
* @return
* @throws Exception
* @author myclover
*/
public static <T> T getSingleBean(String jsonData, Class<T> clazz)
throws Exception {
return JSON.parseObject(jsonData, clazz);
}
/**
* 功能描述:把JSON數(shù)據(jù)轉(zhuǎn)換成指定的java對(duì)象列表
*
* @param jsonData
* JSON數(shù)據(jù)
* @param clazz
* 指定的java對(duì)象
* @return
* @throws Exception
* @author myclover
*/
public static <T> List<T> getBeanList(String jsonData, Class<T> clazz)
throws Exception {
return JSON.parseArray(jsonData, clazz);
}
/**
* 功能描述:把JSON數(shù)據(jù)轉(zhuǎn)換成較為復(fù)雜的java對(duì)象列表
*
* @param jsonData
* JSON數(shù)據(jù)
* @return
* @throws Exception
* @author myclover
*/
public static List<Map<String, Object>> getBeanMapList(String jsonData)
throws Exception {
return JSON.parseObject(jsonData,
new TypeReference<List<Map<String, Object>>>() {
});
}
/**
* 將網(wǎng)絡(luò)請(qǐng)求下來的數(shù)據(jù)用fastjson處理空的情況,并將時(shí)間戳轉(zhuǎn)化為標(biāo)準(zhǔn)時(shí)間格式
* @param result
* @return
*/
public static String dealResponseResult(String result) {
result = JSONObject.toJSONString(result,
SerializerFeature.WriteClassName,
SerializerFeature.WriteMapNullValue,
SerializerFeature.WriteNullBooleanAsFalse,
SerializerFeature.WriteNullListAsEmpty,
SerializerFeature.WriteNullNumberAsZero,
SerializerFeature.WriteNullStringAsEmpty,
SerializerFeature.WriteDateUseDateFormat,
SerializerFeature.WriteEnumUsingToString,
SerializerFeature.WriteSlashAsSpecial,
SerializerFeature.WriteTabAsSpecial);
return result;
}
}
4、新建 class ,使用 gsonformat 插件 轉(zhuǎn)為 『實(shí)體類』
5、最后一步
CourseModel wangDaiM = null ;
wangDaiM = FastJsonUtils.getSingleBean(response, CourseModel.class);
歡迎采納
試試這個(gè)
<video x-webkit-airplay="true" webkit-playsinline="true" preload="auto" autoplay src="http://"></video>
這里就是你的父項(xiàng)目的相關(guān)信息,有時(shí)還有個(gè)relativePath指定父項(xiàng)目的pom.xml文件。
舉個(gè)例子,我創(chuàng)建了個(gè)項(xiàng)目cloud-demo,它的pom.xml配置為:
<project>
...
<groupId>com.example</groupId>
<artifactId>cloud-demo</artifactId>
<version>1.0-SNAPSHOT</version>
...
<!-- 子模塊 -->
<modules>
<module>server-module</module>
</modules>
...
</project>
然后,在該項(xiàng)目下創(chuàng)建子模塊server-module,那么子模塊中應(yīng)該是這樣寫:
<project>
...
<artifactId>server-module</artifactId>
<version>1.0-SNAPSHOT</version>
...
<parent>
<groupId>com.example</groupId>
<artifactId>cloud-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
...
</project>渲染函數(shù)寫成這樣
h(App, {
ref: 'app'
})
然后通過app.$refs.app.Teaching()調(diào)用
可能是 devtool 熱部署不支持resource文件夾更新,我重啟服務(wù)器就好了。
樓主,我也遇到了這個(gè)問題,請(qǐng)問最后是怎么解決的呢?
public ServletOutputStream getOutputStream()
throws IOException {
if (usingWriter) {
throw new IllegalStateException
(sm.getString("coyoteResponse.getOutputStream.ise"));
}
usingOutputStream = true;
if (outputStream == null) {
outputStream = new CoyoteOutputStream(outputBuffer);
}
return outputStream;
}
調(diào)用getOutputStream方法后會(huì)執(zhí)行usingOutputStream = true;
再調(diào)用getWriter方法
if (usingOutputStream) {
throw new IllegalStateException
(sm.getString("coyoteResponse.getWriter.ise"));
}
就會(huì)拋出這個(gè)異常,if <code>getOutputStream</code> has
* already been called for this response,所以不能同時(shí)使用。實(shí)在是沒人回答,關(guān)閉
北大青鳥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)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國成功上市,融資1
北大課工場(chǎng)是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(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ū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(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)師。