重点:$('#xx').bind('input propertychange', function() {}
举例子:
html:
<div ><span id="number2">0</span> <input type="range" name="number" min="0" max="10" class="ranger" id="number" /></div>
js:
$('#number').bind('input propertychange', function() { document.getElementById('number2').innerHTML = document.getElementById('number').value; });
结果: