在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ HTML5問答
避風港 回答

如果是寫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 {}
慢半拍 回答

可以在你的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/**

詳情請看https://blog.csdn.net/hadues/...

呆萌傻 回答

可以對它使用css樣式 transform:scale進行縮放,比如下面的例子縮放50%

<polyline class="a" points="4960,1920 11040,8000 4960,14080 " style='transform:scale(0.5)'></polyline>