我有这个:
var jon = new Person("Jon")
但是只有当我出价高于当前值时,它才有效,我如何添加允许我将出价等于或高于当前值的条件?
答案 0 :(得分:0)
用这种方式写的:>=
..
答案 1 :(得分:0)
只需添加>=
而不是=
{if $next_bid_amount >= $bid} <br /> <p> <div class="alert alert-danger"> The lowest possible next bid is {$meta.currency_sign}{$next_bid_amount|number_format}. Please bid this amount or higher. </div> </p> <br /> {/if}
答案 2 :(得分:0)
这样做,
$next_bid_amount >= $bid