import Swiper from 'swiper';
import '../node_modules/swiper/dist/css/swiper.css';
'swiper.css' : 'node_modules/swiper/dist/css/swiper.css'
import 'swiper.css';
(function f(){
function f() {return 1;}
function f() {return 2;}
return f();
})();
function pluralizeRus(n, forms) {
return n % 10 == 1 && n % 100 != 11
? forms[0]
: (n % 10 >= 2 && n % 10 <= 4
&& (n % 100 < 10
|| n % 100 >= 20) ? forms[1] : forms[2]);
}
alert('6 Скриншот' + pluralizeRus(6, ['', 'а', 'ов']));
$('.selector').each(function(){
$(this).text(+$(this).text() + 1);
});
if(opacity == 0) {
...
return true;
} else {
...
}
return userFadeout2(el,delay,opacity.toFixed(1));
Т.к. к option привязан javascript в результате выполнения которого появляется новый,другой select
В чем отличия Object.prototype.method и Object.method?
И не могу понять: зачем нам prototype? Ведь по сути нам просто нужно получить функцию и задать контекст, почему же тогда работает только с prototype?