问题描述
我的脚本存在自动生成数值格式(分隔符(,)和(2)十进制数)的问题,我尝试但由于动态数据表中的此输入形式而失败。我需要对问题有最佳解决方案。这是我的脚本:
Web服务输入表单动态数据表
while ($row = MysqLi_fetch_assoc($empRecords)) {
$x=$x+1;
$price_po = '';
$price_po .="<input type='text' data-index='".$x."' id='pricepo_".$x."' size='20' class='form-control' value='".number_format($row['price_po'],2,'.',',')."' onkeypress='CheckNumeric(this)' onchange='handleKeyUp(this)' >";
$qty_po = '';
$qty_po .="<input type='text' data-index='".$x."' id='qtypo_".$x."' class='form-control' value='".number_format($row['qty_po'],')."'onkeypress='CheckNumeric(this)' onchange='handleKeyUp(this)' >";
$total = '';
$total .="<input type='text' data-index='".$x."' id='total_".$x."' class='form-control' value='".number_format($row['total'],')."' readonly>";
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)