是否有res.sendFile的替代品。它似乎不受解析支持。
https://parse.com/questions/is-there-an-alternative-to-expresss-ressendfile
我想要完成的是为URL提供特定文件;
有无
example.com/servemesomefile
服务
somefile.html
答案 0 :(得分:0)
查看我的updated answer original question。您可以通过重定向响应获得所需的行为(假设您要发送的文件位于private class ViewHolder {
EditText answer;
ImageView imageView;
MyTextWatcher myTextWatcher;
}
private class MyTextWatcher implements TextWatcher {
private Car car;
private EditText mEditText;
public MyTextWatcher(EditText mEditText) {
this.mEditText = mEditText;
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void afterTextChanged(Editable s) {
if (car != null) {
car.setComment(mEditText.getText());
}
}
public void setCar(Car car) {
this.car = car;
}
}
目录中)。