前端页面 script 事件总结

1. input  失去焦点是触发事件

$("#sn").blur(function(){
     alert("sdfasdf");
});

 2.  获取文本框中的 值

var obj=$("#sn");
alert(obj.val())
原文地址:https://www.cnblogs.com/redhat0019/p/8962983.html