f5tts/wwwroot/js/myapp.js

11 lines
275 B
JavaScript
Raw Normal View History

2024-12-25 16:04:39 +08:00
var set_response_text_url = function(w, resp){
schedule_once(async_set_response_text_url.bind(w, w, resp), 0.1);
}
var async_set_response_text_url = async function(w, resp){
console.log('arguments=', arguments);
var url = await resp.text();
w.set_url(url);
w.play();
}