如果我想读取HTML页面中的变量,哪种方法更可取?这两者之间有区别吗?
class SomePage extends Page {
private String someVariable = "Some value";
public SomePage() {
addModel("someVariable", someVariable);
}
}或
class SomePage extends Page {
@Bindable
private String someVariable = "Something";
}https://stackoverflow.com/questions/22832147
复制相似问题