Мелоч

This commit is contained in:
2021-09-03 10:39:53 +06:00
parent c19e513a5e
commit 9648554d7c
9 changed files with 90 additions and 86 deletions

View File

@ -108,6 +108,11 @@ Date.prototype.toDateString = function (){
return '' + y + '-' + (m<=9 ? '0' + m : m) + '-' + (d <= 9 ? '0' + d : d);
}
Date.prototype.addHours = function(h) {
this.setTime(this.getTime() + (h*60*60*1000));
return this;
}
//Расширяем класс строки для удаления HTML тегов
String.prototype.stripTags = function() {
return this.replace(/<\/?[^>]+>/g, '');