js代码
<script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.form.js"></script> <script language="javascript"> $(function(){ function test(func){ var start = new Date().getTime(); func(); var end = new Date().getTime(); return (end - start)+"ms"; } $('.form').inform(); }); </script>