jquery.Event:
http://api.jquery.com/category/events/event-object/
简单的案例:
<button id="btn">点我啊</button>
<script>
$("#btn").on("click",function() {
$("#btn").trigger($.Event('done.keyboard', {
password: "123456"
}));
})
$( "#btn" ).on("done.keyboard",function(res){
console.log(res.password)
})
</script>