我对jquery和javascript一个月左右的新手是全新的。我试图使用这个jquery包:https://github.com/amsul/pickadate.js并且我有以下html:
function sendTime(){
date = new Date(document.getElementById('timepicker').value);
document.getElementById('time').value = date;
document.getElementById('next').click();
}
var $timepicker = $('#timepicker').pickatime(
{
min: [9, 0],
max: [19, 30],
}
);
基本上,我想调用sendTime()函数来设置' time'元素并点击“下一步”'设置timepicker时下面的元素:
for (int i = 0; i < 3; ++i) {
data.put("val", String.valueOf(i));
firebaseFunctions.getHttpsCallable("sandbox").call(data)
.addOnFailureListener(e -> Log.e("Error; " + e.getMessage()))
.addOnSuccessListener(result -> Log.v("Success! Got " + result.getData()));
}