1
$.each(asList(1, 2, 3), new Block<Integer>() {
    public void apply(Integer item) {
        System.out.println(item + ",");
    }
});

它抛出错误,它无法解析“$”我正在使用 underscore-java 1.6

4

1 回答 1

1

你需要import com.github.underscore.$;

于 2015-09-17T09:48:14.693 回答