沒人知道嗎?
setTimeout(()=>console.log('token will be expiried in 5 mins'), new Date(Date.parse("Tue Nov 21 2017 00:40:59 GMT +0800 (CST)"))-Date.now()-5*60*1000)
this.keys["similar"] = similar;
this.keys["relative"] = relative;
CSS+SVG,這里有個(gè)鮮活的例子
為什么最后一處是false?
Object.create創(chuàng)建了一個(gè)新的object,具體實(shí)現(xiàn)方式類似于下面
Object.create = function (o) {
var F = function () {};
F.prototype = o;
return new F();
};
const reducer = (state = {}, action) => {
switch (action.type) {
case 'chinese':
return {
...state,
...{msg: '這是Redux啊'}
}
case 'english':
return {
...state,
...{msg: "This is Redux"}
}
default:
return state
}
}
改成這樣
https://github.com/zenorocha/...
new ClipboardJS('.btn', {
text: function(trigger) {
return 'You wanted'
}
});
將
"css-loader",
"postcss-loader",
改為:
{loader: 'css-loader',options: { importLoaders: 1 }},
{loader: 'postcss-loader',options: { config: { path: path.resolve(__dirname, './postcss.config.js') } },
我是在這里找到的答案:
https://github.com/webpack-co...
Web App側(cè)重“功能”,是使用網(wǎng)頁技術(shù)實(shí)現(xiàn)的App??偟膩碚f,Web App就是運(yùn)行于網(wǎng)絡(luò)和標(biāo)準(zhǔn)瀏覽器上,基于網(wǎng)頁技術(shù)開發(fā)實(shí)現(xiàn)特定功能的應(yīng)用。比如谷歌搜索引擎就是一個(gè)webApp,它有一個(gè)特定的功能,所以可以稱為webapp
https://baike.baidu.com/item/...
PWA可以添加至主屏幕,點(diǎn)擊主屏幕圖標(biāo)可以實(shí)現(xiàn)啟動(dòng)動(dòng)畫以及隱藏地址欄,實(shí)現(xiàn)離線緩存功能,即使用戶手機(jī)沒有網(wǎng)絡(luò),依然可以使用一些離線功能,實(shí)現(xiàn)了消息推送。
https://segmentfault.com/a/11...
CSS:before and after
export class HeaderComponent implements OnInit {
private timer = 0;
public settingDialog = false;
...
toggleSetting(isShow: any) {
const show = !!isShow;
clearTimeout(this.timer);
if (!show) {
// delay 600ms for hide
this.timer = setTimeout(() => {
this.settingDialog = show;
}, 600);
return;
}
this.settingDialog = show;
}
...
}
tp5的多文件不是指這個(gè) <input name="file" type="file" multiple/> .
是指
<input type="file" name="file[]" />
<input type="file" name="file[]" />
<input type="file" name="file[]" />
自己找到了解決方案…………………………
這樣配置后可以直接本地請(qǐng)求線上地址,不會(huì)出現(xiàn)跨域問題。
解決方案:
跨域問題
1本地host配置成線上域名:
要注意的是localhost不支持端口映射,之前就是栽進(jìn)這個(gè)坑里了。
2.設(shè)置axios請(qǐng)求攔截器(可不設(shè)置)
ip限制問題
ip限制的話就是通過vpn代理本地請(qǐng)求了,比如他限制40.70.230.110:3499這個(gè)訪問,就需要把服務(wù)器配置成這個(gè)40.70.230.110:3499。自己百度吧。
3.本地訪問的時(shí)候直接訪問m.xx.com
其實(shí)使用GraphQL不一定要和Node綁定的,主流的語言和開發(fā)框架都有GraphQL的擴(kuò)展。所以不妨把問題的關(guān)注點(diǎn)放在要不要應(yīng)用GraphQL。
https://www.microsoft.com/net...
這里有3.5,但是也沒有4.0
要兼容XP確實(shí)挺慘的,還是想辦法升級(jí)到至少WIN7吧。
使用聚合查詢
db.projects.aggregate([{
$lookup:{
from:'users',
localField: 'userId',
foreignField: '_id',
as: 'userinfo'
}
},{
$match:{
'userinfo.sex': '0'
}},{"$unwind": "$remark"}])
requestObj 在用JSON.stringify()轉(zhuǎ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
中公教育集團(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)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國成功上市,融資1
曾工作于聯(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)師。