1
什么是确定var是否为elementFinder对象的方法? 我现在要做的方式是检查“.getText()”是否为对象的一部分。但我想看看是否有更好的方法。什么是确定var是否是javascript中的elementFinder对象的方法?
if (!el.getText) {
throw "The supplied parameter is not an elementFinder and needs to be.";
}