为了账号安全,请及时绑定邮箱和手机立即绑定

$( "#spinner" ).spinner( "option", "culture", $( this ).val() )?参数

$( "#spinner" ).spinner( "option", "culture", $( this ).val() )?参数

web_東 2018-04-25 11:07:45
<!doctype html><html><head>  <meta charset="utf-8">  <title>jQuery UI 旋转器(Spinner) - 货币</title>  <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">  <script src="//code.jquery.com/jquery-1.9.1.js"></script>  <script src="/static/js/jqueryui/resources/demos/external/jquery.mousewheel.js"></script>  <script src="/static/js/jqueryui/resources/demos/external/globalize.js"></script>  <script src="/static/js/jqueryui/resources/demos/external/globalize.culture.de-DE.js"></script>  <script src="/static/js/jqueryui/resources/demos/external/globalize.culture.ja-JP.js"></script>  <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>  <link rel="stylesheet" href="https://jqueryui.com/resources/demos/style.css">  <script>  $(function() {    $( "#currency" ).change(function() {      $( "#spinner" ).spinner( "option", "culture", $( this ).val() );    });     $( "#spinner" ).spinner({      min: 5,      max: 2500,      step: 25,      start: 1000,      numberFormat: "C"    });  });  </script></head><body> <p>  <label for="currency">要捐款的货币</label>  <select id="currency" name="currency">    <option value="en-US">US $</option>    <option value="de-DE">EUR €</option>    <option value="ja-JP">YEN ¥</option>  </select></p><p>  <label for="spinner">要捐款的数量:</label>  <input id="spinner" name="spinner" value="5"></p></body></html>
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1440 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信