Trường · Product price
Trường · Product price · commerce.price. Phương thức tạo · Ví dụ
commerce.price
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Generates a price between min and max (inclusive).
commerce.price(options?: { min?, max?, dec?, symbol? })- options
- An options object.
- options.min
- The minimum price. Defaults to 1.
- options.max
- The maximum price. Defaults to 1000.
- options.dec
- The number of decimal places. Defaults to 2.
- options.symbol
- The currency value to use. Defaults to ''.
Ví dụ
"668.35"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.