Мелоч
This commit is contained in:
@ -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, '');
|
||||
|
||||
Reference in New Issue
Block a user