• <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显示数字变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                    <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>