码迷,mamicode.com
首页 > 其他好文 > 详细

Easyui NumberBox格式化展示

时间:2017-09-02 11:32:09      阅读:504      评论:0      收藏:0      [点我收藏+]

标签:form   code   log   20px   href   javascrip   java   def   att   

 格式化效果:

技术分享

 

 

 

源代码:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Format NumberBox - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
    <h2>Format NumberBox</h2>
    <p>Number formatting is the ability to control how a number is displayed.</p>
    <div style="margin:20px 0;"></div>
    <table>
        <tr>
            <td>Number in the United States</td>
            <td><input class="easyui-numberbox" value="1234567.89" data-options="precision:2,groupSeparator:‘,‘"></input></td>
        </tr>
        <tr>
            <td>Number in France</td>
            <td><input class="easyui-numberbox" value="1234567.89" data-options="precision:2,groupSeparator:‘ ‘,decimalSeparator:‘,‘"></input></td>
        </tr>
        <tr>
            <td>Currency:USD</td>
            <td><input class="easyui-numberbox" value="1234567.89" data-options="precision:2,groupSeparator:‘,‘,decimalSeparator:‘.‘,prefix:‘$‘"></input></td>
        </tr>
        <tr>
            <td>Currency:EUR</td>
            <td><input class="easyui-numberbox" value="1234567.89" data-options="precision:2,groupSeparator:‘,‘,decimalSeparator:‘ ‘,prefix:‘€‘"></input></td>
        </tr>
        <tr>
            <td></td>
            <td><input class="easyui-numberbox" value="1234567.89" data-options="precision:2,groupSeparator:‘ ‘,decimalSeparator:‘,‘,suffix:‘€‘"></input></td>
        </tr>
    </table>
 
</body>
</html>

 

Easyui NumberBox格式化展示

标签:form   code   log   20px   href   javascrip   java   def   att   

原文地址:http://www.cnblogs.com/mr-wuxiansheng/p/7465952.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!