上移是為了防止鍵盤把輸入表單擋住...
如果是寫chrome擴展的話,可以使用storage這個api,會自動同步云端(如果你連接了谷歌服務器),否則和localstorage是一樣的,可直接存儲數(shù)組或對象。
具體使用
chrome.storage.sync.set({ 'key': vlaue }, function() {
console.log(' saved success');
});
value可以為字符串,數(shù)組,對象,使用這個api需要在manifest.json中添加"storage"這個權限
如果是使用普通的sessionStorage或localStorage,存儲復雜對象,可以把對象或數(shù)組用JSON.stringfy轉成字符串來存儲,使用的時候用JSON.parse來解析成原來的格式。
希望能對你有所幫助。
我在網上搜了很多,最終發(fā)現(xiàn)一個方法,把MUI相關引用的JS放在body標簽后面即可
我最后這樣是成功了,這應該是MUI的一個BUG吧
加一個:<Route path="*" component={NotFoundPage} />
transform:rotate
canvas也有context.rotate
可以的,你可以通過 InstanceTree.getNodeParentId( dbId ) 這個函數(shù)獲取該構件父節(jié)點的 dbId。如果你想遞歸(resursively)的獲取該構件父層的父層的信息,可以這么做:
/**
* @param {InstanceTree} it - Forge Viewer instance tree.
* @param {number} dbId - 想要查詢的構件 dbId.
* @param {number[]} parentIds - 結果容器.
*/
function getParnetIds( it, dbId, parentIds ) {
const pid = it.getNodeParentId( dbId );
if( pid == it.getRootId() ) return;
parentIds.push( pid );
getParnetIds( pid, parentIds );
}
const it = viewer.model.getData().instanceTree;
const parentIds = [];
getParnetIds( it, 915, parentIds );
if( parentIds.length > 0 ) {
const n = parentIds.length;
for( let i = 0; i < n ; i++ ) {
cosnt dbId = parentIds[i];
console.log( it.getNodeName( dbId ) ); // 打印父節(jié)點的名稱
}
}AppRoutingModule
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
const routes: Routes = [
{ path: '', redirectTo: '/login', pathMatch: 'full' },
//自己填好LoginModule路徑
{ path:'login',loadChildren:'login.module#LoginModule' }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}
LoginRoutingModule
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
const routes: Routes = [
{ path: '', component: LoginComponent }
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LoginRoutingModule {}給你推薦一個可以知道答案的地方:https://developer.mozilla.org...
可以在你的list數(shù)組中加上路由字段,點擊的時候動態(tài)的獲取各自的跳轉路由
/這個js文件對scroll()方法進行擴展,在JQ中scroll()只可以監(jiān)聽滾動的時候的一個事件.這個js文件可以監(jiān)聽scrollStart和scrollStop/
(function(){
var special = jQuery.event.special,
uid1 = 'D' + (+new Date()),
uid2 = 'D' + (+new Date() + 1);
special.scrollstart = {
setup: function() {
var timer,
handler = function(evt) {
var _self = this,
_args = arguments;
if (timer) {
clearTimeout(timer);
} else {
evt.type = 'scrollstart';
jQuery.event.handle.apply(_self, _args);
}
timer = setTimeout( function(){
timer = null;
}, special.scrollstop.latency);
};
jQuery(this).bind('scroll', handler).data(uid1, handler);
},
teardown: function(){
jQuery(this).unbind( 'scroll', jQuery(this).data(uid1) );
}
};
special.scrollstop = {
latency: 300,
setup: function() {
var timer,
handler = function(evt) {
var _self = this,
_args = arguments;
if (timer) {
clearTimeout(timer);
}
timer = setTimeout( function(){
timer = null;
evt.type = 'scrollstop';
jQuery.event.handle.apply(_self, _args);
}, special.scrollstop.latency);
};
jQuery(this).bind('scroll', handler).data(uid2, handler);
},
teardown: function() {
jQuery(this).unbind( 'scroll', jQuery(this).data(uid2) );
}
};
})();
可以將上面代碼保存到一個文件,這相當于一個插件。
(function(){
jQuery(window).bind('scrollstart', function(){
console.log("start");
});
jQuery(window).bind('scrollstop', function(e){
console.log("end");
});
})();
轉載于
作者:毛毛家的大熊
鏈接:https://www.jianshu.com/p/4fa...
來源:簡書
著作權歸作者所有。商業(yè)轉載請聯(lián)系作者獲得授權,非商業(yè)轉載請注明出處。
普通的input標簽上傳就可以了
<input id="videoForm" type="file" name="videos[]" multiple= "multiple" />
https://blog.csdn.net/michael...
angularJS,建議系統(tǒng)學習一遍,這里有一個免費的課程,結合官方文檔
http://www.imooc.com/video/4285
如果是剛入門,建議學習angular4.x,框架更穩(wěn)定,運行更輕量,便于測試,了解它就會愛上:)
https://angular.cn/guide/quic...
你試試
<svg width="100px" height="100px" viewBox="0 0 100 100">
<path d="M0 0 L50 50" stroke="black"></path>
</svg>沒明白你的意思,你是要做國際化嗎
密碼學非對稱加密,p2p,共識算法,分布式技術
https://mp.weixin.qq.com/debu...
recorderManager.start(options) ,那個只是個回調函數(shù)吧,當錄音開始的時候就會調用那個函數(shù)。
引用文字
其實Spring Boot 2.x 版本針對這個問題有最優(yōu)解決方案,直接修改application.properties 文件即可
spring.mvc.static-path-pattern=/static/**
可以對它使用css樣式 transform:scale進行縮放,比如下面的例子縮放50%
<polyline class="a" points="4960,1920 11040,8000 4960,14080 " style='transform:scale(0.5)'></polyline>北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據專業(yè)的國家
達內教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構,是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學校辦產業(yè)為響應國家深化產教融合/校企合作的政策,積極推進“中國制造2025”,實現(xiàn)中華民族偉大復興的升級產業(yè)鏈。利用北京大學優(yōu)質教育資源及背
博為峰,中國職業(yè)人才培訓領域的先行者
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經理從事移動互聯(lián)網管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經理職務負責iOS教學及管理工作。
浪潮集團項目經理。精通Java與.NET 技術, 熟練的跨平臺面向對象開發(fā)經驗,技術功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網頁制作和網頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經驗。曾經歷任德國Software AG 技術顧問,美國Dachieve 系統(tǒng)架構師,美國AngelEngineers Inc. 系統(tǒng)架構師。