A頁(yè)面點(diǎn)擊輸入投資金額點(diǎn)擊確定按鈕后,增加B頁(yè)面的投資金額所占比例。進(jìn)度條用的jqmeter.js 插件:賦值粘貼下面的代碼B頁(yè)面代碼:<!doctype html><html><head><meta charset="utf-8"><title>jQuery簡(jiǎn)單實(shí)用的輕量級(jí)進(jìn)度條插件</title><style type="text/css"> *{padding:0; margin:0;} h1{text-align:center; margin:60px auto 20px;} .box{width:700px; margin:0 auto;}</style><script src="http://libs.useso.com/js/jquery/1.11.0/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/jqmeter.min.js"></script> <script type="text/javascript"> $(function(){ $('.jqmeter-container').jQMeter({ goal:'$3,000', raised:'$1800', width:'300px', height:'30px' }); }); </script></head><body><div class="box"> <div class="jqmeter-container"></div></div></body></html>A頁(yè)面:
js兩個(gè)頁(yè)面值累加
慕萊塢森
2018-08-08 14:15:08