About the {{}} in the Vue project |

{{item.price | round}} what does "|" in the interpolated text mean

Apr.15,2021

{{item.price | round}}

| represents a syntax
round rounding retains 1 decimal place by default


| it is a pipe symbol in vue. The first is the value you want for Filter, followed by a filter. The so-called Filter means that your filtered value


is mistaken, not a bit operator. It is the filter of vuejs


vue. Learn about the filter of


vue, which is equivalent to passing the previous value into the following function. For example, {{a | fun}}, which is equivalent to {{fun (a)}}, is generally used for some simple processing of data.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50ee4-66a92.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50ee4-66a92.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?