我想知道为什么这段代码
<div class="home" on:mousewheel="{e=>handleScroll(e)}"></div>
Run Code Online (Sandbox Code Playgroud)
返回以下错误
类型 '{ 类:字符串;onmousewheel: (e: 任意) => void; }' 不可分配给类型“HTMLProps”。类型“HTMLProps”上不存在属性“onmousewheel”。
这只是出于好奇,因为即使有错误它也能完美地工作。
诗。我正在使用 TypeScript