This commit is contained in:
2021-09-13 20:49:01 +06:00
14 changed files with 3237 additions and 166 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, '');