Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在传递一个 Rust 闭包,它充当 JavaScript API 的回调函数,如wasm-bindgen. API 将信息存储在this可以在回调中访问的关键字中。
wasm-bindgen
this
如何访问this我的 Rust 闭包代码中指向的对象?