其實直接
print(p1);
就可以
路徑改成
val bankText = sc.textFile("file:\\D:/Projects/Zeppelin/bank/bank-full.csv")
還是換種思路把. 推薦 https://github.com/shshaw/Spl... 這個庫, 可以把一段話分成單個的字符, 然后控制每個字符出現(xiàn)順序來完成動畫吧.
涉及到錢用分做單位比較方便
https://www.cnblogs.com/taode... 這里找到辦法了。
sublime text 3 >首選項>package settings>emmet>settings user>
{
// Custom snippets definitions, as per https://github.com/emmetio/emmet/blob/master/snippets.json
"snippets": {
"html": {
"snippets": {
"myfavicon": "<link rel=\"shortcut icon\" type=\"image/ico\" href=\"/favicon.ico\" />",
"mycompat": "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" />\n<!--[if lt IE 9]>\n<script src=\"https://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n<script src=\"https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js\"></script>\n<![endif]--><!--[if IE 9]>\n<script src=\"https://cdn.bootcss.com/geopattern/1.2.3/js/base64.min.js\"></script>\n<script src=\"https://cdn.bootcss.com/geopattern/1.2.3/js/typedarray.min.js\"></script>\n<![endif]-->",
"360compat": "<meta name=\"renderer\" content=\"webkit\">",
"mykeywords": "<meta name=\"keywords\" content=\"your keywords\">",
"mydesc": "<meta name=\"description\" content=\"your description\">",
"myviewport": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
"bootstrap4": "<link href=\"https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css\" rel=\"stylesheet\">\n<script src=\"https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.js\"></script>",
"bootstrap3": "<link href=\"https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\">\n<script src=\"https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.js\"></script>"
},
"abbreviations": {
"mydoc": "html>(head>meta[charset='utf-8']+title{${1:文檔標題}}+mykeywords+mydesc+myviewport+mycompat)+body+jq3",
"html:5": "!!!+mydoc[lang='zh-cn']",
"jq3":"script[src='https://cdn.bootcss.com/jquery/3.1.0/jquery.min.js']"
}
}
}
}所以問題是什么?
其實就是運行不同的命令,傳入不同的參數(shù),使用不同的文件。
比如運行npm run dev。
實際命令可配置為node build/build.js --env dev。
在build.js中獲取到相應參數(shù)dev,取到相應的文件并執(zhí)行。
touch事件,給你個簡單的事例吧,返回動畫什么的你自己完成吧,我是直接返回的。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
<title></title>
<style>
*{
margin: 0;
padding: 0;
}
html{
width: 100%;
height: 100%;
}
body{
width: 100%;
height: 100%;
position: relative;
/* touch-action: none; */
}
.box{
width: 100px;
height: 100px;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background: #000;
}
</style>
</head>
<body >
<div class="box" id="box"></div>
</body>
<script>
touch('box');
function touch(id){
var obj = document.getElementById(id);
obj.addEventListener('touchstart', function(event) {
// 如果這個元素的位置內(nèi)只有一個手指的話
if (event.targetTouches.length == 1) {
var touch = event.targetTouches[0];
// 把元素放在手指所在的位置
var disX=touch.pageX-obj.offsetLeft;
var disY=touch.pageY-obj.offsetTop;
obj.addEventListener('touchmove',move);
function move(event){
//event.preventDefault();
document.documentElement.style.touchAction = 'none';
var touch2=event.targetTouches[0];
//var l=touch2.pageX-disX;
var t=touch2.pageY-disY;
// if(l<0){
// l=0;
// };
// if(l>document.documentElement.clientWidth-obj.offsetWidth){
// l=document.documentElement.clientWidth-obj.offsetWidth
// };
if(t<0){
t=0;
};
if(t>document.documentElement.clientHeight-obj.offsetHeight){
t=document.documentElement.clientHeight-obj.offsetHeight;
};
//obj.style.left=l+'px';
obj.style.top=t+'px';
};
obj.addEventListener('touchend',chend);
function chend(event){
if(obj.offsetTop<150){
alert('成功');
obj.style.top='auto';
obj.style.bottom='0px';
}else{
obj.style.top='auto';
obj.style.bottom='0px';
};
document.documentElement.style.touchAction = 'auto';
obj.removeEventListener('touchmove',move);
obj.removeEventListener('touchend',chend);
};
};
}, false);
};
</script>
</html>
String express = "(\\@\\w+\\@)";
String sqlString = "select * , @ as iid from as_person where icorp = @icorp@ and iperosn = @iperson@";
Matcher match = Pattern.compile(express).matcher(sqlString);
while (match.find()) {
System.out.println(match.group());
}
結果是
@icorp@
@iperson@
一般都是有個狀態(tài),改變的數(shù)據(jù),沒有dom操作,根據(jù)這個索引的關注狀態(tài)進行改變,data-index="{{item.index}}",這個是索引值,你數(shù)據(jù)里面的,可能還有個是否關注,例如:<view>{{item.concern==0?"關注":"已關注"}}</view>,通過獲取出來數(shù)據(jù)是否關注,0,1判斷。點擊進行改變當前索引值的數(shù)據(jù)的concern就可以了
vue.min.js是VUE框架打包壓縮好的文件,一般構建工程自己引入vue-router包再用構建工具如webpack打包
問題解決了,不過其實我也不太清楚是怎樣解決了,反正我是重新啟動了一下項目就OK了,可能是因為網(wǎng)絡的問題吧。
如果你是移動端的話,應該是fixed定位的問題。通過監(jiān)控獲取焦點改變定位absolute,失去焦點的時候再fixed回來就可以了。桌面端咱沒遇到過這個問題。
NGINX.conf配置,可以增加vhost
個人覺得不需要
第 2 條里面說每個 api 都會判斷用戶是否登錄;
親,是否可以嘗試下請求需要登錄后權限的 api 在頭信息里面帶上 token 之類的的標識呢?
我的大概思路:調(diào)用登錄 api 成功后保存 token 到 cookie 里面,然后在 api 在請求頭信息里面帶上 token 拿數(shù)據(jù);
這樣 api 層可以完全單獨出來。
在非 template/render 模式下(例如使用 CDN 引用時),組件名要分隔,例如DatePicker必須要寫成date-picker
GA、CNZZ或者開源的piwik也可以看看。
先把token保存到本地,下次接口請求再帶上。
如果有用axios,可以再攔截器中統(tǒng)一設置
$.when , jQuery 的 API 。
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構,是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學校辦產(chǎn)業(yè)為響應國家深化產(chǎn)教融合/校企合作的政策,積極推進“中國制造2025”,實現(xiàn)中華民族偉大復興的升級產(chǎn)業(yè)鏈。利用北京大學優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓領域的先行者
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務負責iOS教學及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術, 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術顧問,美國Dachieve 系統(tǒng)架構師,美國AngelEngineers Inc. 系統(tǒng)架構師。