当前位置:网站首页>错误提示:Syntax error on token “function”, delete this token
错误提示:Syntax error on token “function”, delete this token
2022-08-09 23:05:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
想要重写onkeydown()函数,但是却出现了如下提示:
将上面的定义方法修改为
<script type="text/javascript">
document.onkeydown = function() {
if(event.keyCode == 13 && event.srcElement.type != "button") {
event.keyCode = 9;
}
}
</script>这样问题就解决了,但是这是为什么呢?
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/105706.html原文链接:https://javaforall.cn
边栏推荐
- Golden Warehouse Database KingbaseGIS User Manual (6.6. Geometric Object Verification Function, 6.7. Spatial Reference System Function)
- 2022-08-09 mysql/stonedb-subquery performance improvement-introduction
- ECCV 2022 | Microsoft Open Source TinyViT: Pre-training Capabilities for Small Models
- 生成树和交换的总结
- Technology feast!Huayun Data brings six topics to OpenInfra Days China
- 基于 RocksDB 实现高可靠、低时延的 MQTT 数据持久化
- Seq2Seq论文阅读笔记
- 【集训DAY4】矩形【线段树】
- 蔚来杯2022牛客暑期多校训练营7 CFGJ
- 服务发现@EnableDiscoveryClient
猜你喜欢
随机推荐
harbor配置远程仓库
《动手学深度学习》(八) -- 多尺度标检测和单发多框检测
上交所实时行情文件汇总
领跑政务云,连续五年中国第一
Jpa 查询view or 无主键的table
Redis-基本介绍/linux下环境配置/配置文件
Digital wallets, red sea ecological rapid introduction of small programs can help capture device entry wisdom
In-depth understanding of multithreading (Part 1)
HStreamDB v0.9 发布:分区模型扩展,支持与外部系统集成
ALV报表总结2022.8.9
【SSL集训DAY2】Sort【树状数组】
70. Stair Climbing Advanced Edition
Sqlserver restricts the ip under which accounts can access the database
MQTT X Web:在线的 MQTT 5.0 客户端工具
【集训DAY3】挖金矿【二分答案】
【集训DAY5】快速排序【模拟】【数学】
ES6 从入门到精通 # 15:生成器 Generator 的用法
[C language] In-depth understanding of pointers and arrays (issue 4)
A summary of 6 common tools for cross-border e-commerce
Seq2Seq论文阅读笔记









