简体   繁体   中英

Analog for JQuery's .has() in angular2 BrowserDomAdapter

在angular2 BrowserDomAdapter中是否存在用于JQuery的.has()的模拟或使用提供的方法来实现此类功能的等效方法?

There are no jQuery substitutes in BrowserDomAdapter or Angular2 at all.

You can do most of the things you can do in plain JS using BrowserDomAdapter. If you can't do something you still can fall back to direct DOM access (should be prevented for WebWorker and server-side-rendering compatibility) to have all possibilities plain JS provides.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM