跳至內容
選單
此問題已被標幟
2 回覆
11495 瀏覽次數

Hello all,

I'm working since many days in the file odoo-8.0-20151203/openerp/addons/point_of_sale/static/src/js/models.js

For example, in this file, we can find these two lines :

            var all_taxes = _(this.compute_all(product_taxes, base)).flatten();
            _(all_taxes).each(function(tax) {
                         [...]


What is the utility of the _ (underscore) in those lines?


Thank for your help.

頭像
捨棄
最佳答案

Pascal, _(underscore) used in js shows the involvement of a jquery library called Underscore.js you can further refer this link : http://underscorejs.org/

頭像
捨棄
作者

Thanks

相關帖文 回覆 瀏覽次數 活動
2
7月 25
423
0
4月 20
2413
0
7月 25
266
1
7月 25
5039
0
7月 25
599