小编Eib*_*Web的帖子

如何“屏蔽”输入以显示巴西货币

我需要一个输入范围来显示巴西货币格式的值。从逻辑上讲,在一个函数中接收这个数字就足够了,该函数将对其进行格式化,然后返回格式化的值。但这是Javascript,我找不到让它工作的方法。

function converter(valor){
  var numero = (valor).toLocaleString('pt-BR');
  document.getElementById('valor').value = 'R$ '+numero;
}
Run Code Online (Sandbox Code Playgroud)
<input type="range" min="0" max="4000.00" value="2000.00" step="0.01" style="width:100%" oninput="converter(this.value)">
<p>
<input type="text" name="valor" value="R$ 0,00" id="valor">
Run Code Online (Sandbox Code Playgroud)

html javascript

4
推荐指数
1
解决办法
8899
查看次数

Woocommerce 的数据库中保存订单状态的位置

I know it sounds simple, but I've researched this in many ways and only found functions to change the status of the order. I have also reviewed the whole database of wordpress I did not find the term "status" nor "processing", "completed", etc. Could anyone tell me how Woocommerce stores order status?

mysql wordpress status orders woocommerce

3
推荐指数
1
解决办法
4061
查看次数

标签 统计

html ×1

javascript ×1

mysql ×1

orders ×1

status ×1

woocommerce ×1

wordpress ×1