var date_start = new Date(),
b;
for (i = 0; i < 200000; i++) {
b = !!i;
}
console.log((new Date()) - date_start);
var date_start = new Date(),
b;
for (i = 0; i < 200000; i++) {
b = Boolean(i);
}
console.log((new Date()) - date_start);
var d = new Date();
var s = d.getDate() + '.' + (d.getMonth() + 1) + '.' + d.getFullYear();
console.log(s);
class MyForm(Form):
field1 = DecimalField('Сумма1')
field2 = DecimalField('Cумма2')
def validate(self):
if not Form.validate(self):
return False
if field1.data:
if field2.data:
return True
return False
for line in f1:
match.re.search(r, line)
...
#('#content").on('change', '#catalog-sort', function() {
...
});