我在AngularJS的應用程序中使用MEAN堆棧作爲我的前端。如何繁衍值表,在table
Payment value
如在comma
,commission
值作爲無comma
所以如何乘這兩個值..... My Plunker對於實例:-1。交易: - 支付價值是1,925.10
及佣金值3
如何繁殖逗號價值,沒有逗號值例子: - 1,925.10*3 = 5775.3
...如何在Angularjs中乘以兩個ng模塊值?
對於實例:-2。 Trasaction: - 支付價值是1,925.10
及佣金值5
如何繁殖逗號價值,沒有逗號值例子: - 1,925.10*5 = 9625.5
...
我的HTML: -
<td >{{mani.payment }}</td>
<td >{{mani.commission}}</td>
<td >{{(mani.payment) * (mani.commission)}}</td>
我的數據: -
{
"_id": "5816f4fad0be79f809519f98",
"user": {
"_id": "57400c32bd07906c1308e2cf",
"displayName": "mani selvam"
},
"__v": 0,
"created": "2016-10-31T07:38:34.999Z",
"remarks": "-",
"commission": "3",
"status": "pending",
"amt": "4000",
"cheque_currency": "Rs",
"cheque_value": "300",
"payment": "1,925.10",
"debitnote_no_payment": "3",
"supplier_name": "karikalan",
"buyer_name": "Manidesigns"
},
{
"_id": "5816f4fad0be79f809519f98",
"user": {
"_id": "57400c32bd07906c1308e2cf",
"displayName": "mani selvam"
},
"__v": 0,
"created": "2016-10-31T07:38:34.999Z",
"remarks": "-",
"commission": "5",
"status": "pending",
"amt": "2000",
"cheque_currency": "Rs",
"cheque_value": "300",
"payment": "1,925.10",
"debitnote_no_payment": "3",
"supplier_name": "karikalan",
"buyer_name": "Manidesigns"
},
我創建Plunker供參考: - Plunker
相關http://stackoverflow.com/a/29507259/1929187 – 0aslam0
請看看我的plunker有人問我如何繁殖逗號值和無在表中的逗號值....這是不相關的問題,如果你呃解決方案請更新plunker以及解決方案謝謝,請幫助我們... –