• <tfoot id='03E3u'></tfoot>

      <legend id='03E3u'><style id='03E3u'><dir id='03E3u'><q id='03E3u'></q></dir></style></legend>

      <small id='03E3u'></small><noframes id='03E3u'>

      • <bdo id='03E3u'></bdo><ul id='03E3u'></ul>

      <i id='03E3u'><tr id='03E3u'><dt id='03E3u'><q id='03E3u'><span id='03E3u'><b id='03E3u'><form id='03E3u'><ins id='03E3u'></ins><ul id='03E3u'></ul><sub id='03E3u'></sub></form><legend id='03E3u'></legend><bdo id='03E3u'><pre id='03E3u'><center id='03E3u'></center></pre></bdo></b><th id='03E3u'></th></span></q></dt></tr></i><div id='03E3u'><tfoot id='03E3u'></tfoot><dl id='03E3u'><fieldset id='03E3u'></fieldset></dl></div>

        JQuery Knob显示数字变化

        JQuery Knob display number change(JQuery Knob显示数字变化)
        <legend id='m1P4K'><style id='m1P4K'><dir id='m1P4K'><q id='m1P4K'></q></dir></style></legend>

            <small id='m1P4K'></small><noframes id='m1P4K'>

            • <bdo id='m1P4K'></bdo><ul id='m1P4K'></ul>

                  <tbody id='m1P4K'></tbody>
                <tfoot id='m1P4K'></tfoot>

              1. <i id='m1P4K'><tr id='m1P4K'><dt id='m1P4K'><q id='m1P4K'><span id='m1P4K'><b id='m1P4K'><form id='m1P4K'><ins id='m1P4K'></ins><ul id='m1P4K'></ul><sub id='m1P4K'></sub></form><legend id='m1P4K'></legend><bdo id='m1P4K'><pre id='m1P4K'><center id='m1P4K'></center></pre></bdo></b><th id='m1P4K'></th></span></q></dt></tr></i><div id='m1P4K'><tfoot id='m1P4K'></tfoot><dl id='m1P4K'><fieldset id='m1P4K'></fieldset></dl></div>
                  本文介绍了JQuery Knob显示数字变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 JQuery Knob 来制作一些很酷的图表,而且效果很好.但是我有一个问题:我想让图表之间的显示数字连接一个'%'符号.但我似乎无法让它发挥作用.通过 jquery 修改输入不会这样做,我已经尝试读入库的代码但没有运气.有没有其他人遇到过这个问题?

                  I'm using JQuery Knob to make some cool graphs and it's working perfectly. But I have one problem: I want to make the display number between the graph have a '%' symbol concatenated. but I just cant seem to make it work. Modifying the input through jquery wont do it, and I've tried reading into the code of the library but with no luck. Has any one else had this problem before?

                  推荐答案

                  如果您快速浏览一下 github 存储库,您会发现每次绘制画布时都会调用一个绘制钩子.如果你实现了那个钩子,你应该能够在输入中添加任何你想要的东西.这是您正在寻找的功能的简短示例(尝试一下:http://jsfiddle.net/eAQA2/)和供将来参考:

                  If you take a quick look at the github repo you'll see that there's a draw hook that's called everytime the canvas is drawn. If you implement that hook you should be able to add whatever you wish to the input. Here's a short example of the functionality you're looking for (to try it: http://jsfiddle.net/eAQA2/ ) and for future reference:

                  <!DOCTYPE html>
                  <html>
                  <head>
                  <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
                  <script src="https://raw.github.com/aterrien/jQuery-Knob/master/js/jquery.knob.js"></script>
                  <script>
                  $(function() {
                      $(".dial").knob({
                        'draw' : function () { 
                          $(this.i).val(this.cv + '%')
                        }
                      })
                  })
                  </script>
                  </head>
                  <body>
                  <input type="text" class="dial" data-min="0" data-max="100">
                  </body>
                  </html>
                  

                  这篇关于JQuery Knob显示数字变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <bdo id='2Knw4'></bdo><ul id='2Knw4'></ul>
                    <legend id='2Knw4'><style id='2Knw4'><dir id='2Knw4'><q id='2Knw4'></q></dir></style></legend>
                          <tbody id='2Knw4'></tbody>

                        <i id='2Knw4'><tr id='2Knw4'><dt id='2Knw4'><q id='2Knw4'><span id='2Knw4'><b id='2Knw4'><form id='2Knw4'><ins id='2Knw4'></ins><ul id='2Knw4'></ul><sub id='2Knw4'></sub></form><legend id='2Knw4'></legend><bdo id='2Knw4'><pre id='2Knw4'><center id='2Knw4'></center></pre></bdo></b><th id='2Knw4'></th></span></q></dt></tr></i><div id='2Knw4'><tfoot id='2Knw4'></tfoot><dl id='2Knw4'><fieldset id='2Knw4'></fieldset></dl></div>

                          <small id='2Knw4'></small><noframes id='2Knw4'>

                            <tfoot id='2Knw4'></tfoot>