javascript - 功能在 Chrome 中运行良好,但在 Firefox 中不起作用
问题描述
朋友们,我的功能在 Chrome 中运行良好,但在 Firefox 中无法运行并给出错误:Uncaught TypeError: Property 'handleEvent' is not callable
.
我的功能:function test(){ var a12= parseInt(document.querySelector("#number").value);var a13 = a12.toLocaleString(); SendOrderApi.setOrderCount(a13);}
这个错误的原因是什么?我该如何解决这个问题?
function test(){
var a2= parseInt(document.querySelector("#number").value);
var a3 = a2.toLocaleString();
document.getElementById("s01").innerText=a3;
}
<input id="number" type="number" onmousewheel="test()">
<br>
<span id="s01">12</span>
解决方案
推荐阅读
- scala - 如何将 TimeZone 添加到 Spark TimestampType 列?
- jira - 使用 Xray REST API 创建测试并链接到测试集
- android - EditText.getText() 可以为空吗?
- c# - C# Textbox.Text 格式不正确
- c++ - 如何为启发式函数编写 C++ 概念
- java - 如何在java中正确地使计数器工作
- kivy - 如何检测 Kivy 中哪个设备启动了触摸事件?例如手指、笔或鼠标
- javascript - 将基于类的组件重构为功能组件
- c - 在文件 c 中居中字符串
- python - PyQt5 QML 应用程序在导入 QtQuick.Controls 2 时崩溃