var html = '<div><div class="logo"><p>Content</p><p>Further Elaborated</p></div></div>';
var first = $(html).find(".logo")[0].outerHTML;
var second = $(html).find(".logo").prop('outerHTML');
var third = $('<div>').append($(html).find(".logo")).html();
var fourth = $(html).find(".logo").parent().html();
var correct = '<div class="logo"><p>Content</p><p>Further Elaborated</p></div>';
console.log(first);
console.log(second);
console.log(third);
console.log(fourth);
console.log(first === correct && second === first && third === second && fourth === third);
Из навыков только: Html, Css (на среднем уровне), Javascript (начал изучать совсем недавно).Вот их и используйте.
s = '2015-10-21 09:35:18';
d = new Date(s);
console.log(d.getHours(), d.getMinutes());
time = '2015-10-21 09:35:18'.split(' ')[1];
parts = time.split(':');
console.log(parts[0], parts[1]);
Выполняется по очереди.Неправда.
You can also compile synchronouslyhttps://github.com/dlmanning/gulp-sass#basic-usage
а во втором будут компилироваться параллельно/синхронно или что?Наоборот, синхронно = последовательно.
function set_select(a, c, d, e) {
var el = document.getElementsByName(a)[0];
if (!el) {
console.warn('Element "' + a + '" not found');
return;
}
for (var b = el.options.length = 0; b < c; b++) {
el.options[b] = new Option(a == 'month' ? $month_name[b] : b + d, b + d);
}
el.options[e] && (el.options[e].selected = !0)
}
echo '[ul]';
foreach (range(0, 9) as $i)
{
if ($i > 0 && $i % 4 == 0)
{
echo '[/ul]';
echo '[ul]';
}
echo '[li]', 'Значение', '[/li]';
}
echo '[/ul]';