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 Applicationblazor

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  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

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心