問題タブ [comma]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - DataTableでコンマを使用してデータをチェックする
この初心者の質問をお詫びしますが、簡単な解決策を探しています。
データテーブルを返す関数を書きたい。
このような:
この関数は、DataTableの各データをチェックします。
データに1つ以上のコンマが含まれている場合、関数はそのデータを二重引用符で囲みます。
例えば:
この関数を書くための最良の方法は何ですか?
どんな体も私を助けることができますか?
このコードで解決しましたが、もっと簡単な解決策が必要です。
可能であれば、ループは必要ありません。
php - オンザフライ文字列から最初のカンマを削除
私はちょっとした PHP 初心者なので、 を使用するか、それとも使用するかがわかりませpreg_replace()ん。いずれにせよ、私はそれについて行く方法がわかりません。explode()implode()
私はワードプレスにいて、このコードを実行しています:
文字列にキャプチャし、echo ', ' . $term->name;最初にそれを削除する必要があり', 'ます。
別の方法でecho名前を付けることができたとしても、皆さん(およびギャル)が私を助けてくれませんか?
ありがとう!
javascript - JavaScript カウントアップ タイマーにコンマを追加する
これが私のプログラムです:
出力の千の位にコンマを挿入しようとしています (たとえば、1234 ではなく 1,234)。これどうやってするの?
wpf - マスクされたテキストボックスに数字とカンマのみを受け入れるようにするにはどうすればよいですか?
自分で答えを見つけようとしましたが、良い例を見つけることができませんでした。
したがって、数字とコンマのみを受け入れるwpfのマスクされたテキストボックスが必要です。
例:35,5
mysql - SQLは整数値にコンマ区切り文字を追加します
質問があります:
このクエリは、100.00から15034115.93までの値を返すことができます。1つの値を返します。000ごとに、次のように追加したいと思います:15,034,115.93
私はたくさんの同様の質問を見てきましたが、どれも私のものと一致しません。誰かが私を助けてくれることを願っています。
前もって感謝します!
私はPentahoとMySQLを使用しており、DesignStudio内でこれらのクエリを作成しています。
sql - バッチファイルを介してvarcharパラメータをSQLファイルに渡します
複数のSQLファイルを実行し、それらにパラメーターを渡すバッチファイルがあります。入力パラメータは、バッチファイルによって読み取られるtxtファイルに保存されます。
INvarchar値をSQLの句に渡そうとしています。
例えば
私の入力ファイルでこのエントリ
バッチファイル内
test.sql (名前はvarchar2)
これにより、実行しようとしたときに無効な番号と表示されてエラーが発生します
select * from table where name in (tommy);
SQL stmtの直前にエコーすると、「tommy」、「jim」が表示されますが、SQLではjimと一重引用符が削除されます...
助けてください!
今、私は入力ファイルのエントリを次のように編集しました
var1="'''tommy''','''jim'''"
それは次のようになりますselect * from table where name in ('tommy');
しかし、それは2番目の値を切り捨てます
カンマを含める方法の手がかりはありますか?
haskell - Haskell tuple constructor (GHC) and the separation between a language and its implementation
Haskell blew my mind yet again when I realised that
Is just syntactic sugar for
Naturally I wanted to extend this to larger tuples. But
Gave me
Which was not what I was looking for. On a whim, I tried
And it worked, giving exactly what I wanted:
This raised the question: How far can you take it? Much to my astonishment, there seemed to be no limit. All of the below are valid operators:
This behaviour is amazing and leads to my actual question: Is it something which can be emulated in my own functions? Or is it just a GHC-specific feature of the tuple operator? I'm thinking it's the latter as I've read the haskell98 specification and iirc it says that implementations only have to define the tuple operator for up to 15 items. Whereas GHC has gone the whole hog and let you do it up to arbitrary limits.
So, would it be possible to define this family of operators/functions from within the haskell implementation itself, using nothing but the type system and existing language features (declarations, type signatures, function definitions etc.)? And if so, how? Or is it impossible and you have to instead look into the compiler to find the supporting framework for this collection of functions?
This leads to an even more general question: How much of Haskell is supported by Haskell itself, through type and function definitions, declarations etc; and how much is supported by the compiler/implementation? (I am aware that GHC was written in Haskell, that doesn't answer the question)
That is, if you were to abandon the standard libraries (including the prelude) and do everything from the ground up in raw Haskell; would it be possible to build a complete implementation that has all the features of GHC, using only that minimal set of features? What are the mimimum set of language features that you need in order to build a haskell implementation using Haskell? Would I be able to abandon the prelude and then completely rebuild it manually from within GHC? If you abandon the prelude and never import anything, what is left over for you to work with?
It may seem like I'm asking a million questions, but they're really all trying to ask the same thing with different wording. Give it your best shot SO!
c# - C#: テキスト ボックス内の数値を変更する
私は音声合成プログラムを作成していますが、これまでのところ、何を言うべきかを含むテキストボックスがあります。ただし、プログラムにテキストボックス内の数字を一度に1つずつ言ってもらいたいと思います。たとえば、テキストボックスには次の内容が含まれる場合があります。
「これは 3820 番です これは別の 3823 番です」
「これは数字のスリー エイト ツー ゼロです」のように、数字を分けて言うプログラムが欲しいです。テキスト読み上げサーバーは、間にコンマがある場合にのみ、数値を個別に分割します。代わりに、テキストボックスには次のものが必要です。
「これは数字 3,8,2,0 です。これは別の数字 3,8,2,3 です」
また、単語の後に数字を検索してその数字を変更する方法はありますか。たとえば、「アカウント」という単語の後の数字のみを変更しますか? 例:
「これはアカウント 3029 これは番号 3009 これは別のアカウント 3030 です」
に
「これはアカウント 3,0,2,9 です。これは番号 3009 です。これは別のアカウント 3,0,3,0 です。」
php - 文字列が 50 通を超える場合、メールの文字列をグループに分割します
電子メール アドレスのリストを含む文字列を、たとえば 50 個のグループに分割する効率的な方法はありますか。コンマ区切り形式の電子メールを含む文字列があるとします。たとえば、email1@host.com、email2@host.com、email3@host.com などです。
これを行う最も明白な方法はおそらく配列でしょうが、文字列関数でそれを行う方法はありますか? 私は substr と str_split を見てきましたが、それらは仕事をしているように見えません。
ありがとう
c++ - c++:数値をカンマでフォーマットしますか?
std::string整数を取り、カンマでフォーマットされた整数を返すメソッドを書きたいと思います。
宣言の例:
使用例:
string数値をコンマ付きで書式設定する C++ の方法は何ですか?
(ボーナスはdoubles も処理することです。)