你在php.ini 里面把 session.cookie_lifetime 和 session.gc_maxlifetime設(shè)置的超大就行,例如999999999
你是想說跨域問題嗎?我是配置了proxy代理來解決數(shù)據(jù)交互問題的。
已經(jīng)解決,是由于win7自還的powershell版本太低的問題,需要升級到版本4就可以了
powershell
$PSVersionTable.PSVersion
其中Major列為版本號,win7自帶的會(huì)顯示2
按教程http://www.pstips.net/powersh... 升級為4,然后重啟電腦就可以了
我很好奇,為啥在vue中,用jquery~~
不要去到vendor目錄修改源碼,直接在App\Http\Auth\LoginController下重寫validateLogin方法即可,我的是laravel5.5版本不同可能會(huì)有略微差別。
至于驗(yàn)證碼的,當(dāng)然力薦mews/captcha
在laravel中使用起來簡直不要太簡單。(多余的代碼就不寫了)
$this->validate($request, [
'captcha' => 'required|captcha',
]);試試把遠(yuǎn)程的分支刪掉,然后重新push,再merge到master上。
hover之后將該區(qū)域塊顯示出來,然后加上animation,從左到右的滑動(dòng)
舉個(gè)例子
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<style>
ul li{list-style:none; width:100px; position:relative; float:left; overflow:hidden;}
ul li img{width:100%;}
ul li .info{position:absolute; bottom:0; left:0; width:100%; height:40px; line-height:40px; background:-webkit-gradient(linear, 0 0, 0 bottom, from(rgba(255,255,255,.2)), to(rgba(0,0,0,.2)));}
.hide{display:none;}
.slideleft{animation:left .5s 1; animation-fill-mode:forwards;}
.slideright{animation:right .5s 1; animation-fill-mode:forwards;}
.slidetop{animation:top .5s 1; animation-fill-mode:forwards;}
.slidebottom{animation:bottom .5s 1; animation-fill-mode:forwards;}
@keyframes left{
from{left:-100%;}
to{left:0;}
}
@keyframes top{
from{bottom:-100%; left:0;}
to{bottom:0; left:0;}
}
@keyframes bottom{
from{bottom:100%;}
to{bottom:0;}
}
@keyframes right{
from{left:100%;}
to{left:0;}
}
</style>
</head>
<body>
<ul>
<li>
<img src="https://img1.epetbar.com/2017-05/24/10/7982bafb75e8aba985e08de99780be52.jpg?x-oss-process=style/fill&$1=300&$2=300" alt="">
<div class="info hide">
test
</div>
</li>
<li>
<img src="https://img1.epetbar.com/2017-05/24/10/7982bafb75e8aba985e08de99780be52.jpg?x-oss-process=style/fill&$1=300&$2=300" alt="">
<div class="info hide">
test
</div>
</li>
<li>
<img src="https://img1.epetbar.com/2017-05/24/10/7982bafb75e8aba985e08de99780be52.jpg?x-oss-process=style/fill&$1=300&$2=300" alt="">
<div class="info hide">
test
</div>
</li>
</ul>
<script>
$("li").hover(function(e){
var mX = e.clientX;
var mY = e.clientY;
var liLeft = $(this).offset().left;
var liTop = $(this).offset().top;
var liW = $(this).width();
var liH = $(this).height();
x = (mX - liLeft - ( liW / 2 ) ) * ( liW > liH ? (liH / liW ) : 1 )
y = (mY - liTop - (liH / 2)) * (liH > liW ? (liW / liH) : 1),
// 上(0) 右(1) 下(2) 左(3)
direction = Math.round( ( ( ( Math.atan2( y, x ) * ( 180 / Math.PI ) ) + 180 ) / 90) + 3 ) % 4;
if(direction == 0){
$(this).find(".info").removeClass("hide").addClass("slidetop");
}else if(direction == 1){
$(this).find(".info").removeClass("hide").addClass("slideright");
}else if(direction == 2){
$(this).find(".info").removeClass("hide").addClass("slidebottom");
}else if(direction == 3){
$(this).find(".info").removeClass("hide").addClass("slideleft");
}
},function(){
$(this).find(".info").addClass("hide").removeClass("slideleft").removeClass("slidetop").removeClass("slideright").removeClass("slidebottom")
})
</script>
</body>
</html>css是無法操作html元素的,可以在輸出html(php或js模版生成)頁面時(shí)在input標(biāo)簽上加上readonly屬性??梢圆榭磆tml教程( http://www.pahei8.com )參考什么是html。
np.sum(np.array(range(10000000), dtype=float))
numpy底層用c優(yōu)化的,應(yīng)對任何數(shù)學(xué)問題,默認(rèn)的dtype是int32,當(dāng)然溢出來啦
你都fixed了怎么還會(huì)滾動(dòng)
ps:從VC變成view代碼改動(dòng)大,說明結(jié)構(gòu)不太好哦,得重構(gòu)下了。
vue 的模板代碼只能在它的掛載點(diǎn)之內(nèi)使用,head 標(biāo)簽顯然在掛載點(diǎn)之外。
解決辦法很簡單,不要因?yàn)橛昧?Vue 或者其它什么框架就忘記了 Vanilla JS:
document.title = 'whatever you want'點(diǎn)控制臺上面的藍(lán)色字
不能為null 默認(rèn)為*
可以為null 默認(rèn)為null
zxing的識別率本來就不是特別高的,只能改源碼或是用其他庫吧。
encode('utf-8') 試試呢? 有些接口的參數(shù)不能是unicode,如果你不指定編碼,就會(huì)以系統(tǒng)默認(rèn)編碼(多數(shù)是ascii)去編碼。所以中文就會(huì)報(bào)錯(cuò)的
抱歉我為了理解open函數(shù)所做的變量比喻真的很糟糕,把問題弄的更亂了。謝謝大家對我的解答。
北大青鳥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”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級產(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ù), 熟練的跨平臺面向?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)師。