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

鍍金池/ 問(wèn)答/ HTML5問(wèn)答
朕略萌 回答

1.stopPropgation不行是因?yàn)槟憬壎ㄔ趌i上,其不能阻止同一個(gè)節(jié)點(diǎn)上的其他事件句柄被調(diào)用。而且整體運(yùn)行沒(méi)有被終止,后面的if仍然有效并執(zhí)行。而return則直接結(jié)束了。
2.減少DOM操作,提高效率。
3.可以換種思路,代碼如下:

$( '.type-2 li' ).on( {
  click( e ) {
    let $this = $( this );
    
    $this.toggleClass( 'selected' ).hasClass( 'selected' )
      ? e.target.nodeName === 'LI'
          &&  $this
                .children( 'i' )
                .remove()
      : $this
          .append(
            `<i class="iconfont icon-select-answer animated slow infinite">
                <textarea placeholder='輸入具體描述(必填):'></textarea>
             </i>`
          ).focus()
  }
});
孤毒 回答

我在網(wǎng)上搜了很多,最終發(fā)現(xiàn)一個(gè)方法,把MUI相關(guān)引用的JS放在body標(biāo)簽后面即可

我最后這樣是成功了,這應(yīng)該是MUI的一個(gè)BUG吧

枕邊人 回答

加一個(gè):
<Route path="*" component={NotFoundPage} />

如果是寫(xiě)chrome擴(kuò)展的話,可以使用storage這個(gè)api,會(huì)自動(dòng)同步云端(如果你連接了谷歌服務(wù)器),否則和localstorage是一樣的,可直接存儲(chǔ)數(shù)組或?qū)ο蟆?br>具體使用

 chrome.storage.sync.set({ 'key': vlaue }, function() {
                console.log(' saved success');
  });
value可以為字符串,數(shù)組,對(duì)象,使用這個(gè)api需要在manifest.json中添加"storage"這個(gè)權(quán)限

如果是使用普通的sessionStorage或localStorage,存儲(chǔ)復(fù)雜對(duì)象,可以把對(duì)象或數(shù)組用JSON.stringfy轉(zhuǎn)成字符串來(lái)存儲(chǔ),使用的時(shí)候用JSON.parse來(lái)解析成原來(lái)的格式。
希望能對(duì)你有所幫助。

眼雜 回答

可以的,你可以通過(guò) InstanceTree.getNodeParentId( dbId ) 這個(gè)函數(shù)獲取該構(gòu)件父節(jié)點(diǎn)的 dbId。如果你想遞歸(resursively)的獲取該構(gòu)件父層的父層的信息,可以這么做:

/**
 * @param {InstanceTree} it - Forge Viewer instance tree.
 * @param {number} dbId - 想要查詢(xún)的構(gòu)件 dbId.
 * @param {number[]} parentIds - 結(jié)果容器.
 */
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é)點(diǎn)的名稱(chēng)
  }
}
撥弦 回答

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 {}
糖豆豆 回答

/這個(gè)js文件對(duì)scroll()方法進(jìn)行擴(kuò)展,在JQ中scroll()只可以監(jiān)聽(tīng)滾動(dòng)的時(shí)候的一個(gè)事件.這個(gè)js文件可以監(jiān)聽(tīng)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) );
        }
    };
 
})();

可以將上面代碼保存到一個(gè)文件,這相當(dāng)于一個(gè)插件。

(function(){
    jQuery(window).bind('scrollstart', function(){
        console.log("start");
    });
 
    jQuery(window).bind('scrollstop', function(e){
        console.log("end");
    });
 
})();

轉(zhuǎn)載于
作者:毛毛家的大熊
鏈接:https://www.jianshu.com/p/4fa...
來(lái)源:簡(jiǎn)書(shū)
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處。

不討喜 回答

給你推薦一個(gè)可以知道答案的地方:https://developer.mozilla.org...

墨染殤 回答

angularJS,建議系統(tǒng)學(xué)習(xí)一遍,這里有一個(gè)免費(fèi)的課程,結(jié)合官方文檔
http://www.imooc.com/video/4285

如果是剛?cè)腴T(mén),建議學(xué)習(xí)angular4.x,框架更穩(wěn)定,運(yùn)行更輕量,便于測(cè)試,了解它就會(huì)愛(ài)上:)
https://angular.cn/guide/quic...

夢(mèng)囈 回答

你試試

<svg width="100px" height="100px" viewBox="0 0 100 100"> 
    <path d="M0 0 L50 50" stroke="black"></path>
</svg>
胭脂淚 回答

普通的input標(biāo)簽上傳就可以了
<input id="videoForm" type="file" name="videos[]" multiple= "multiple" />
https://blog.csdn.net/michael...

慢半拍 回答

可以在你的list數(shù)組中加上路由字段,點(diǎn)擊的時(shí)候動(dòng)態(tài)的獲取各自的跳轉(zhuǎn)路由

莓森 回答
引用文字
其實(shí)Spring Boot 2.x 版本針對(duì)這個(gè)問(wèn)題有最優(yōu)解決方案,直接修改application.properties 文件即可

spring.mvc.static-path-pattern=/static/**

詳情請(qǐng)看https://blog.csdn.net/hadues/...

艷骨 回答

http請(qǐng)求是一個(gè)異步操作,在success回調(diào)之前,不會(huì)執(zhí)行回調(diào)中的代碼。

然而你的取值是在發(fā)起請(qǐng)求之后就立即取值的。

淺淺 回答

密碼學(xué)非對(duì)稱(chēng)加密,p2p,共識(shí)算法,分布式技術(shù)

短嘆 回答

沒(méi)明白你的意思,你是要做國(guó)際化嗎

初心 回答
 on:{
       'on-change': () => {
          console.log('111')
      }
   }

重新回答