cost 97 ms
在 AutoNumeric javascript 中,如果輸入是 integer,如何創建顯示 integer 的格式,如果輸入是浮點數,如何創建顯示貨幣的格式?

[英]In AutoNumeric javascript, how do I create a format that shows integer if the input is an integer but currency if the input is a float?

我需要在 AutoNumeric javascript 中創建一個格式來執行以下操作: 如果文本框的輸入值為87 ,請保持無格式: 87 如果輸入值為87.6 ,則顯示為: 87.60 如果輸入值為87.65 ,則顯示為: 87.65 如果輸入值為87.654 ,則顯示為: 87.654 如果輸入 ...

AutoNumeric Multiple Class 使用預設語言

[英]AutoNumeric Multiple Class using preset Languages

這里的目標是使用預設語言設置所有.class 值(.multiple),並能夠修改小數位或刪除貨幣符號等內容。 這僅適用於一個 class。 或這個。 這將適用於所有課程,但我無法弄清楚如何設置小數位? 我幾乎嘗試了所有可以想象的選擇。 謝謝。 ...

JQuery:從 autoNumeric 動態檢索值

[英]JQuery: dynamically retrieve value from autoNumeric

我有一組文本框,我在其上配置了 autoNumeric(此插件: https://github.com/autoNumeric/autoNumeric ): 當我發布表單時,我想重新格式化文本框中的值: 顯然我無法讓它工作,我看到的是 myText 有一個名為 jQuery3600005893906 ...

無法實例化組件或類“yii\bootstrap\BootstrapAsset”

[英]Failed to instantiate component or class "yii\bootstrap\BootstrapAsset"

我正在嘗試在 yii2 中制作一個表格,以接受像 currency 這樣的大數字。 我希望將數字分開,例如 10000000 看起來像 10.000.000 。 我搜索並發現有一個叫做自動數字的東西我使用它但我收到了這個錯誤 如果我沒有使用自動數字 錯誤消失了,任何機構都可以幫忙嗎???? ...

將數據轉換為 pandas DataFrame 並刪除一些

[英]Convert data into a pandas DataFrame and remove some

我有一組測量數據要轉換為浮點值的 dataframe。 但有時機器不測量並設置一個“---”字符,這會給出 pandas.to_numeric ValueError。 對於此處的簡化示例,我的問題是如何轉換為浮動孔列並刪除我有字符串“---”字符集的位置: 如何刪除整個第三行並將 row_1 值轉換 ...

“autoNumeric.js”在動態創建的表單元素中不起作用

[英]"autoNumeric.js" not working in dynamically created form element

我在我的項目中使用 AutoNumeric.js (v4.6.0),我有一個動態創建價格字段的表單。 加載頁面時,默認情況下的第一個輸入可以正常工作,但不幸的是,之后自動創建的輸入不起作用。 我怎么解決這個問題? 從現在開始謝謝你。 ...

初始化后如何更新選項或更改貨幣

[英]How to update options or change currency after initialized

我正在使用https://github.com/autoNumeric/autoNumeric/blob/master/README.md#options-update 並且無法弄清楚如何更新 AutoNumeric 中的選項所以預期的結果是從選擇中改變我想要的貨幣但它顯示錯誤update is n ...

如何以編程方式將值設置為自動數字元素?

[英]How to set value to autonumeric element programmatically?

我將 (autonumeric@4.1.0) 與 laravel 5.7/jquery 3.4.1 應用程序一起使用,我需要在事件觸發時以編程方式將值設置為自動數字元素。 查看描述https://github.com/autoNumeric/autoNumeric 我看到了 set 方法的例子: ...

如何使用 AutoNumeric 計算總數

[英]How to calculate total with AutoNumeric

我正在使用http://autonumeric.org/或https://github.com/autoNumeric/autoNumeric/blob/master/README.md 怎么修當我使用 JS function 來計算總和時出現,但不像我想要的那樣格式化 AutoNumeric 當鼠 ...

Jquery:autoNumeric.js 在提交時刪除格式編號

[英]Jquery : autoNumeric.js Remove Formatting Number at submit

我使用這個autoNumeric.js插件在輸入文本字段時格式化數字。 一切都很好,我可以在輸入時看到數字已格式化。 但問題是,每次我提交表格時,數字仍然是格式化的。 如何在提交表單中刪除格式化的數字? 源代碼 *注意,我不知道這個插件是否被棄用了。 ...

在 null 之后將值設置為零

[英]Set value to zero after null

在null之后顯示零值時出現問題。 null沒有顯示在輸入中,但是如果我將值更改為0,它也不會出現......也許我做錯了什么? 也許有人遇到了這個問題,有沒有辦法解決這個問題? 在第一個輸入中,我希望出現 0。 new Vue({ el: '#app', data() { return { v ...

如何使用 autonumeric.js 獲取空字段

[英]How to get empty field with autonumeric.js

當我專注於該領域時,我希望能夠,並且我有最小和最大限制(1-31),我希望能夠刪除所有數字,但我不會讓它這樣做。 如果我輸入 17,我可以刪除 7,僅此而已。 我希望能夠刪除這兩個數字並重新輸入其他數字。 目前我的自主設置是: 版本:1.9.45 ...

AutoNumeric-刪除接收到的值

[英]AutoNumeric - removes received values

我使用autoNumeric。 將鼠標懸停在input元素上時,將清除添加到input數據。 為什么要清除這些值? 如何解決? 演示 $('#thermForwardStream').focusout(function () { var thermForwardStrea ...

如何檢查元素是否已初始化 autoNumeric

[英]How to check if element has autoNumeric initialized

如何檢查一個 HTML 元素是否已經初始化了autoNumeric ,所以我不會再次初始化它? 初始化它兩次會導致所有輸入數字出現兩次。 編輯:檢查的原因是 autoNumeric 可能之前在其他地方初始化過,在另一個具有不同autoNumericSettings腳本中,並且此腳本需要尊重較早 ...

所有方法都返回 '.autoNumeric 不是函數 - 不能取消數字格式

[英]All methods return '.autoNumeric is not a function - Can't unformat numbers

我正在嘗試獲取使用 autoNumeric 格式化的輸入數字的原始值,但不能,因為我嘗試使用它在控制台中返回“ .autoNumeric is not a function ”的每種方法。 $(document).ready(function() { new AutoNumeric( ...

jQuery-autoNumeric插件,從.autoNumeric('set',value)自動觸發.change()

[英]jQuery - autoNumeric plugin, fire .change() automatically from .autoNumeric('set', value)

我正在使用autoNumeric jQuery插件 。 我想讓.autoNumeric('set', value)方法自動調用.change()事件。 我有以下代碼: 我將如何完成? 更新:在autoNumeric.js文件中,我找到了這個(在set內): 鑒於在我 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM