比如:

var scrollVeiw = this.comp('ScrollView');
scrollVeiw.noMoreLoadLabel = '加载完成';
scrollVeiw.refresh();

变量的名字可以看源码:/UI2/system/components/justep/scrollView/scrollView.js

分别是:

this.pullDownLabel = “下拉刷新”;
this.pullDownMoveLabel = “松开刷新”;
this.pullDownLoadingLabel = “加载中….”;

this.pullUpLabel = “加载更多”;
this.pullUpMoveLabel = “释放加载”;
this.pullUpLoadingLabel = “加载中….”;
this.noMoreLoadLabel = “已经到最后.”;

 

//修改状态

this.comp(“scrollView1”).noMoreLoad=false