1. input 失去焦点是触发事件
$("#sn").blur(function(){ alert("sdfasdf"); });
2. 获取文本框中的 值
var obj=$("#sn"); alert(obj.val())
前端页面 script 事件总结
原文:https://www.cnblogs.com/redhat0019/p/8962983.html