node在后端大公司不會全站用,都會做成接入層,核心邏輯用RPC調(diào)用做的。
如果是一般項目,可以考慮koa,express,eggjs這種web框架。
加上現(xiàn)在docker化的開發(fā),nodejs這點上比PHP方便
@keyup.native.enter
this.yearList = this.service.getYearList()
.do(yearList => {
if (this.year.value === '0' && yearList.length > 0) {
this.year.next(yearList[0]);
}
})排查問題:
1、將你要賦的值打印出來看看存不存在?
2、隨便為附一個值:document.getElementById("telephone_input").value = '123123';看看能不能成功?
送你一個參考文章,注意你第二次選擇圖片的時候是不是深度替換了你的監(jiān)聽方法,和圖片的編碼數(shù)據(jù)。關于前端圖片裁切并上傳的使用總結(jié)!
希望對你有幫助
這樣就不是很明顯
我們都用Ant Design,踩過了很多坑,也填了很多坑。
不能pull和push,建議重新add和commit,再重新pull和commit
官網(wǎng)JSSDK中并沒有提及到這個api。應該是不可以
width: 100%;改flex:1,讓線段占據(jù)剩余寬度。
字段名拼寫錯誤:module指模塊,model指模型
HTML結(jié)構(gòu)中的數(shù)據(jù)模型綁定字段應該為ng-model
用下面的方式可以
const Weather = Loadable({
loader: () => import('./weather').then(({ view }) => view),
loading: () => <div>loading...</div>
});可以在指令的宿主元素下加一個ng-container作為動態(tài)組件容器,ng-container會在渲染時消失。
指令可以做一些修改:
@Directive({
selector: '[appTxt]'
})
export class TxtCopyDirective {
@Input('appTxt') dyView:any
constructor(
private el: ElementRef,
private renderer2: Renderer2,
public viewContainerRef: ViewContainerRef,
private componentFactoryResolver: ComponentFactoryResolver
) {}
@HostListener('click', ['$event']) onclick(event: any) {
this.dyView.clear();
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(動態(tài)組件);
this.dyView.createComponent(componentFactory);
}
}
目標元素:
<span [appTxt]="dyView">
click
<ng-container #dy></ng-container>
</span>
目標元素所在組件獲取ng-container容器作為參數(shù)傳給指令:
@ViewChild('dy',{read:ViewContainerRef}) dyView:ViewContainerRef以1px下邊框為例
定義一個border-bottom-1px的mixin,設置一個顏色參數(shù) @color。
@mixin border-bottom-1px($color){
position: relative;
&:after{
display: block;
position: absolute;
left: 0;
bottom: 0;
width: 100%;
border-top: 1px solid $color;
content: ' ';
}
}
對border-bottom-1px進行縮放
@media (-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5){
.border-bottom-1px{
&::after{
-webkit-transform: scaleY(0.7);
transform: scaleY(0.7);
}
}
}
@media (-webkit-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2){
.border-bottom-1px{
&::after{
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
}
}
@media (-webkit-min-device-pixel-ratio: 3),(min-device-pixel-ratio: 3){
.border-bottom-1px{
&::after{
-webkit-transform: scaleY(0.3);
transform: scaleY(0.3);
}
}
}
如何使用?
html如下:
<div class="border-bottom-1px-test">這個元素有一個1px的下邊框</div>
css如下:
.border-bottom-1px-test{
@include border-1px(rgba(7, 17, 27, 0.1));
}
寫css的時候記得先引入border-bottom-1px這個mixin哦。
用css3里面的屬性自己寫一個就Ok了
或是
https://github.com/qianniuc/c...
*{
padding: 0;
left: 0;
}
body{
padding-top: 50px;
}
.header{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 50px;
line-height: 50px;
text-align: center;
background-color: red;
z-index: 10001;
}
.layout{
display: flex;
position: relative;
}
.layout .layout-left{
flex: 0 0 200px;
flex-direction:column;
width: 200px;
color: #fff;
background-color: blue;
}
.layout .layout-right {
background-color: yellow;
overflow-y: auto;
overflow-x: hidden;
position: absolute;
left:215px;
top: 0;
bottom: 0;
right: 0;
margin: auto;
}assetsPublicPath: './'
utils.js
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader',
publicPath:'../../'
})
} else {
return ['vue-style-loader'].concat(loaders)
}
webpack.base.conf
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]'),
outputPath: process.env.NODE_ENV === 'production' ? '../' : ''
}
},北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構(gòu),是中國一站式人才培養(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 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。