Last active
January 3, 2016 11:29
-
-
Save Natim/8456937 to your computer and use it in GitHub Desktop.
Dans @capitainetrain -- Ouvrir tous les billets passé puis :
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var value = 0; | |
var regex = /[+-]?\d+\,\d+/g; | |
$('.ember-view .price').each(function(){ value += $(this).html().match(regex).map(function(v) { return parseFloat(v.replace(',', '.')); })[0] }); | |
console.log(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
À faire dans la console du navigateur.