$('#sum').keydown(function(){
updateResultPrice();
});
function updateResultPrice() {
ajax('/payment/summ', 'price='+$(this).val());
}
Run Code Online (Sandbox Code Playgroud)
不工作!控制台日志打印:未捕获TypeError:无法读取未定义的属性'toLowerCase'