已經(jīng)解決,在app.module.ts的imports里面刪除進(jìn)行懶加載的模塊
// 懶加載
{
path: 'set',
loadChildren: 'app/setting/setting.module#SettingModule'
},
// app.module.ts
@NgModule({
declarations: [
AppComponent
],
imports: [
FormsModule,
// 非懶加載模塊
PopupModule,
CoreModule,
PipeModule,
RoutesModule,
CashRegisterModule,
// 懶加載模塊
// SettingModule
],
bootstrap: [AppComponent]
})
export class AppModule {}
同時(shí),在setting.route.module.ts里面path寫空:
// setting.route.module.t
@NgModule({
imports:
[
RouterModule.forChild([
{
// path: 'set',
path: '',
component: SettingComponent
}
])
],
exports:
[
RouterModule
],
providers:
[]
})
export class SettingRouteModule
{
}
原來的寫法其實(shí)并沒有實(shí)現(xiàn)懶加載,但是angular4不是出錯(cuò),但是在angular5就會(huì)提示懶加載的錯(cuò)誤
選擇器前面加上 /deep/
問題解決了,iframe設(shè)置允許就可以了
To continue to use permissions from iframes on your website...
This deprecation is expected to ship in Chrome M64 (around January 2018). At that time, if a cross-origin iframe attempts to use permission without the feature being explicitly allowed, a console warning will be logged and the feature will fail in a similar way as it would if a user had denied a permission prompt.
If you are a developer of a website which uses cross-origin iframes and you want those iframes to continue to be able to request/use one of the above features, the page that embeds the iframe will need to be changed. The simplest way to do that is to modify the <iframe> tag to include an allow attribute which specifies the name of the permission. For example, to enable geolocation and mic/camera for an iframe, the following would be specified:
<iframe src="https://example.com" allow="geolocation; microphone; camera"></iframe>
Valid values for allow include:
geolocation
microphone
camera
midi
encrypted-media
Note that if the iframe which is using the permission has the same origin as the top level page, then no changes have to be made.
你這個(gè)描述無法確認(rèn)問題.
登陸后返回到登陸頁面 你這個(gè)數(shù)據(jù)是如何獲取到的? 還有你登陸時(shí)候你調(diào)試一下 文本框是否有值 等等
如果頁面顯示對應(yīng)的手機(jī)還有密碼 但是登陸不成功 可能存在請求與數(shù)據(jù)存取先后的問題
1、Form
組件的getFieldDecorator
高階方法中,第二階中只能是一個(gè)組件。不要出現(xiàn)div
之類的組件。
2、提問問題的時(shí)候,不要將代碼以圖片的形式貼出來。該編輯器支持program code
.
var pt = new BMap.Point(116.40387397, 39.91488908);
geoc.getLocation(pt, function(rs){
console.log(rs)
});
你看這樣行不行,我是行的,addEvent 不行
window.onbeforeunload=function(){
return 'Your own message goes here...';
}
props
傳遞,這也是大部分UI組件使用的方式。你這已經(jīng)是父子組件了當(dāng)然是采用props down, events up
。
如無必要盡量少的直接操作dom,因?yàn)関ue的思想數(shù)據(jù)驅(qū)動(dòng)視圖
,而不是直接操作.
當(dāng)然一些場景下還是有必要使用$refs
的,比如獲取一個(gè)元素的寬高..
http://flask.pocoo.org/docs/0...
Flask中有一個(gè)全局變量g
,你可以將你的參數(shù)添加到其中:
g.your_var = 'something'
然后在任意視圖導(dǎo)入并使用即可。
from flask import g
def view_func():
val = g.your_var
...
function valid(rule, value, callback) {
if (!requiredRemark) {
// 備注為非必填
callback();
} else if (value === '') {
// 備注必填且為空
callback(new Error('請輸入備注'));
} else {
// 備注必填且通過
callback();
}
};
你的contract_template_select
下面的div
有沒有定位,沒有的話加上定位,哪怕是用position:relative;z-index:999;
都行
Even on platforms where native scrolling is good enough, iScroll adds
features that wouldn't be possible otherwise. Specifically:Granular control over the scroll position, even during momentum. You
can always get and set the x,y coordinates of the scroller. Animation
can be customized with user defined easing functions (bounce, elastic,
back, ...). You can easily hook to a plethora of custom events
(onBeforeScrollStart, onScrollStart, onScroll, onScrollEnd, flick,
...). Out of the box multi-platform support. From older Android
devices to the latest iPhone, from Chrome to Internet Explorer.
簡單說就是,iscroll具有:
此外,iscroll會(huì)根據(jù)設(shè)備和瀏覽器的不同,選擇性能最佳的方式進(jìn)行模擬滾動(dòng)。
var a = "0"
console.log(a==!a)
這個(gè)URL是什么,看起來略高端。
你的myChart是局部變量
因?yàn)槟闶钦{(diào)兩次所以用全局接受不好分別兩個(gè)可以把,mychart返回出去
然后 var charts1 =getchart('a')
https://jsfiddle.net/3m8fhc01/
雖然是可以這樣做,不過目前瀏覽器支持不佳
我用的是radial-gradient
,瀏覽器支持不算好,不過我看到答案里有用linear-gradient
和box-shadow
的,這兩個(gè)的瀏覽器支持還算可以,不過凹進(jìn)去的區(qū)域并不是透明的,就看有沒有這個(gè)需要
把不常改動(dòng)的第三方依賴拿出來單獨(dú)打包(例如用DllPlugin),然后把文件添加到webpack項(xiàng)目的如static
一類的文件夾,并編寫相關(guān)配置,最后在html模板上直接用script標(biāo)簽引入即可
python里面import是有路徑的,你可以查下相關(guān)資料,這里我簡單說明下其中的一種:
當(dāng)我有/home/a/main.py
和/home/b/utils.py
文件時(shí),此時(shí)我使用python /home/a/main.py
運(yùn)行該文件時(shí),python會(huì)自動(dòng)將/home/a/
目錄加到import的搜索路徑里面,如果/home/a/main.py
文件里面需要引用/home/b/utils.py
里面的文件直接使用from b import utils
是不行的,因?yàn)?code>/home/b/沒有在python的import路徑里面。
解決辦法有幾種:
1,使用sys.path.append('你的包路徑,對應(yīng)你的項(xiàng)目應(yīng)該是coupon_content的父級,假如說coupon_content目錄是在/home/dir/目錄下,那這里就是/home/dir')
;
2,使用相對路徑引用;
北大青鳥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)平臺、一站式人才輸送平臺。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ù), 熟練的跨平臺面向?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)師。