Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
11242 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

Thanks

Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 20
2239
1
cze 25
370
1
cze 25
322
1
maj 25
884
1
maj 25
478