Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
11542 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Autor

Thanks

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juli 25
581
0
Apr. 20
2493
0
Juli 25
352
1
Juli 25
5217
0
Juli 25
742