This video continues implementing our task list application with Scala.js. Most of the work is on how to get a fetch from JavaScript to Scala.js.
Update: Since this video was made, the interface for the Scala.js fetch has been modified slightly. RequestInit no longer takes arguments. Instead, it needs a body that sets values as in the following code.
new RequestInit {
method = HttpMethod.POST
headers = hs
body = Json.toJson(data).toString
}
Note that you need to change the variable name for the Headers to something other than headers. I used hs in this code.
Смотрите видео Play with Scala.js Part 3 (Play using Scala) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mark Lewis 12 Апрель 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 866 раз и оно понравилось 10 людям.