Blazor and JavaScript Interoperability

提供方
Coursera Project Network
在此指導項目中,您將:

Invoke JavaScript functions from .NET code

Invoke .NET methods from JavaScript code

Build browser API interactions in Blazor

Clock1 hour
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this short project-based course, you will learn how to extend your Blazor applications to communicate with JavaScript - the browser's first class language. You'll learn how to invoke JavaScript functions from .NET code, and how to invoke .NET methods from JavaScript. You'll also implement a solution for accessing the browser's localStorage with a .NET service class. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培養的技能

  • Web Application
  • blazor

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Create a new Blazor app

  2. Adding JavaScript to Our App

  3. Trigger JavaScript Function from .NET

  4. Passing a Parameter to JavaScript

  5. .NET Objects as Parameters

  6. Returning Values to .NET

  7. Call .NET Methods from JavaScript

  8. Browser localStorage API Setup

  9. Saving Data to localStorage

  10. Reading Data from localStorage

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心