JS代码
<script type="text/javascript" src="js/bringins.js"></script> <script> $(document).ready(function() { $('#btn').click(function(){ $('#sampledata1').bringins(); }); $('#btn2').click(function(){ $('#sampledata2').bringins({ "position":"left", "color":"#d2527f", "width":"40%", "closeButton":"white" }); }); $('#btn3').click(function(){ $('#sampledata3').bringins({ "position":"center", "color":"black", "closeButton":"white", "width":"100%" }); }); }); </script>