You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
为了便于快速识别您的问题,请认真回答以下问题,谢谢!
Please answer these questions before submitting your issue. Thanks!
使用的表达式与使用场景,确保能够复现(What did you do , If possible, provide a recipe for reproducing the error.)?
我想实现boolean的内置函数,比如想判断 当前是否存在 某个属性,
如//*[boolean(@foo)]
public class Boolean implements Function {
@Override
public String name() {
return "boolean";
}
@Override
public XValue call(Scope scope, List<XValue> params) {
String first = params.get(0).asString();
System.out.println(JsonUtil.toJsonString(params));
return XValue.create(true);
}
}
发现这个
List existsFoo=currentNode.sel("//*[boolean(@foo]");
在调试的时候,发现拿不到 当前的这个属性的上下文呀。
期望看到什么(What did you expect to see)?
JsoupXpath给出的结果是什么(What did you see instead)?
当前使用的版本(What version of JsoupXpath are you using)?
cn.wanghaomiao
JsoupXpath
2.5.3
The text was updated successfully, but these errors were encountered:
为了便于快速识别您的问题,请认真回答以下问题,谢谢!
Please answer these questions before submitting your issue. Thanks!
我想实现boolean的内置函数,比如想判断 当前是否存在 某个属性,
如//*[boolean(@foo)]
发现这个
List existsFoo=currentNode.sel("//*[boolean(@foo]");
在调试的时候,发现拿不到 当前的这个属性的上下文呀。
期望看到什么(What did you expect to see)?
JsoupXpath给出的结果是什么(What did you see instead)?
当前使用的版本(What version of JsoupXpath are you using)?
cn.wanghaomiao
JsoupXpath
2.5.3
The text was updated successfully, but these errors were encountered: