gulp-sass 5 does not have a default Sass compiler; please set one yourself.
Заголовок1=значение
Заголовок2=значение
Заголовок3=значение
Тело страницы ....
class Weight extends Product
{
function buy()
{
return $this; // возвращаем объект, методы которого сможем использовать дальше
}
function weight($amout)
{
parent::$profit += parent::getPrice() * $amout;
echo "Весовой товар куплен. <br> Доход с продаж весовых товаров " . parent::$profit . "<br>";
}
}
$productWeight::buy()->weight(5.5);
const html = (cb) => {
gulp.src(config.src.html)
.on('end', cb) // Вызвать коллбэк после завершения таска.
.pipe(plumber())
.pipe(include())
.pipe(gulpif(config.isProd, htmlmin({
collapseWhitespace: true,
removeComments: true,
})))
.pipe(gulp.dest(config.build.html))
}
async function postData(url = '', data = {}) {
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
});
return await response.json();
}
postData('/handler.php', { number: 42 })
.then((data) => {
console.log(data.number);
});
$number = (int)$_POST['number'];
$number += 1;
echo json_encode(['number' => $number]);