小编Sta*_*tom的帖子

JavaScript 变量到滑块 max 属性

有没有办法将 JavaScript 变量放入滑块的“max”属性值中?例如,

<script type="text/javascript">
myVar="20";
</script>


<input id="slider1" name="sliderr" type="range" max="myVar"></input>
Run Code Online (Sandbox Code Playgroud)

html javascript variables max

2
推荐指数
1
解决办法
2518
查看次数

标签 统计

html ×1

javascript ×1

max ×1

variables ×1