$objRichText = new PHPExcel_RichText();
$objRichText->createText('This text is ');
$objBold = $objRichText->createTextRun('bold');
$objBold->getFont()->setBold(true);
$objRichText->createText(' within the cell.');
$objPHPExcel->getActiveSheet()->getCell('A18')->setValue($objRichText);
SELECT * FROM user p LEFT JOIN horoscope ph
ON
(
convert(MONTH(p.birthday), UNSIGNED INTEGER) >= convert(LEFT(ph.date_start, 2), UNSIGNED INTEGER)
AND convert(DAYOFMONTH(p.birthday), UNSIGNED INTEGER) >= convert(RIGHT(ph.date_start, 2), UNSIGNED INTEGER)
AND convert(DAYOFMONTH(p.birthday), UNSIGNED INTEGER) <= "31"
)
OR
(
convert(MONTH(p.birthday), UNSIGNED INTEGER) <= convert(LEFT(ph.date_end, 2), UNSIGNED INTEGER)
AND convert(DAYOFMONTH(p.birthday), UNSIGNED INTEGER) <= convert(RIGHT(ph.date_end, 2), UNSIGNED INTEGER)
AND convert(DAYOFMONTH(p.birthday), UNSIGNED INTEGER) >= "0"
)
WHERE ph.name = 'Capricorn'
$(function() {
let $chart = $('[data-type="chart"]');
for (let i = 0; i < $chart.length; i++) {
(function(index) {
$.ajax({
success: function() {
console.log('Замыкание', index);
}
})
})(i);
}
});
$(function() {
var $chart = $('[data-type="chart"]');
if ($chart.length) {
ajaxAll($chart, function(index) {
return getChartData($(this).data('url'), index);
}).done(function() {
console.log('ajaxAll', 'Все запросы завершенны');
});
}
function ajaxAll($selector, each) {
var promise = [];
$.each($selector, function() {
promise.push(each.apply(this, arguments));
});
return $.when.apply(null, promise);
}
function getChartData(link, index) {
return $.ajax({
url: link,
method: 'POST',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({
data: {
item: index
}
}),
success: function(response) {
console.log('getChartData', 'Одиночный запрос завершен успешно', index);
}
});
}
});
<select showSearch placeholder="select out of stock actions" optionFilterProp="children" style="width: 200" ><option value="N">None</option> <option value="B">Buy in advance</option><option value="s">sign up for notification</option></select>
var Block = React.createClass({
handleClose: function(e) {
e.stopPropagation();
alert('close');
},
handleClick: function(e) {
alert('click');
},
render: function() {
return (
<div onClick={this.handleClick}>
<span>Foo Bar Baz</span>
<span onClick={this.handleClose}> ×</span>
</div>
);
}
});
e.stopPropagation();
при клике на нужный вам элемент(лайк)The Sunway TaihuLight uses a total of 40,960 Chinese-designed SW26010 manycore 64-bit RISC processors based on the Sunway architecture. Each processor chip contains 256 processing cores, and an additional four auxiliary cores for system management (also RISC cores, just more fully featured) for a total of 10,649,600 CPU cores across the entire system.
Memory 1.31 PB (5591 TB/s total bandwidth)