2023年3月9日

【JavaScript】——input元素的oninput事件和onchange事件

摘要: //第一种:直接在元素标签上添加oninput属性,属性值为处理事件函数的调用 <input type="text" id="input" oninput="handleInput()"></input> function handleInput() { // 处理事件代码 } //第二种:获取in 阅读全文

posted @ 2023-03-09 12:26 IT丶Hatcher 阅读(576) 评论(0) 推荐(0)

JavaScript实现搜索联想关键字高亮功能

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文

posted @ 2023-03-09 12:24 IT丶Hatcher 阅读(273) 评论(0) 推荐(0)

导航