我需要在释放滑块旋钮时调用一个函数.onchange 在我更改值时更改它.有没有类似的解决方案
I need a function to be called when the slider knob has been released.
onchange changes the value while I'm changing it. Is there a solution for this like
<input type="range" min="0" max="1000" onrelease="callfunction()">
使用 mouseup 事件和 touchend 事件在手机上用于处理此用户交互.
Use the mouseup event on desktop browsers and the touchend event on mobile phones for handling this user interaction.
<input type="range" min="0" max="1"
onmouseup="callfunction()"
ontouchend="callfunction()">
我建议您查看 caniuse.com 以获得浏览器支持.
I would recommend to check caniuse.com for browser support.
已知问题(截至 2019-03-25):
这篇关于是否有用于“鼠标释放"的 HTML 属性/事件处理程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Angular 2:在本地 .json 文件中找不到文件Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
使用模式 Angular 2 进行输入验证Input validation with pattern Angular 2(使用模式 Angular 2 进行输入验证)
如何在角度2中动态更改css类名How to change the css class name dynamically in angular 2(如何在角度2中动态更改css类名)
如何删除输入类型中的默认颜色?How to remove default color in input type?(如何删除输入类型中的默认颜色?)
如何将点击事件添加到打字稿中动态添加的html元How to add click event to dynamically added html element in typescript(如何将点击事件添加到打字稿中动态添加的html元素)
XPath 具有条件的多个属性值之一XPath one of multiple attribute values with condition(XPath 具有条件的多个属性值之一)