我用 php 语言创建了一个在线商店。
我需要该部分来过滤产品的价格(价格范围)。
在 javascript 部分,我需要使用 php 变量而不是from和to。
我的 JavaScript 代码:
<script>
$('.price_range').jRange({
from: 0,
to: 67390000,
step: 50,
format: '%s USD',
width: 300,
showLabels: true,
isRange : true
});
</script>