но вот в чём преимущество php перед Ruby или Python? Я новичок в этом деле и пытаюсь разобраться во всех тонкостях.
How can I serve statics from several directories?
You may typically use any middleware several times within your application. With the following middleware setup and a request to "GET /javascripts/jquery.js" would first check "./public/javascripts/jquery.js", if it does not exist then the subsequent middleware will check "./files/javascripts/jquery.js".
app.use(express.static('public'));
app.use(express.static('files'));
if (document.getElementById('#someInput').value !== '') {
//Set CSS rule
} else {
//Else not set CSS rule
}
var input = document.querySelector("input");
input.focus();
input.selectionStart = input.value.length;