onsuccess = (request) => {
block_request = false;
document.getElementById("image-list").innerHTML += request.response;
// При просмотре в браузере здесь есть аттрибут response и там есть html код
console.log(request)
// Здесь выводит пустоту
console.log(request.response);
},
request.onreadystatechange = () => {
if (request.status === 200 && ready_to_react === true) {
ready_to_react = false;
onsuccess(request);
} else {
ready_to_react = false;
onerror(request);
}
}
{
test: /\.s?css$/,
use: [
MiniCssExtractPlugin.loader,
{loader: 'css-loader', options: {sourceMap: false }},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: function () {
return [
require('autoprefixer')
];
}
}
}
},
'sass-loader'
]
}
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
chainWebpack: config => {
if (process.env.NODE_ENV === 'production') {
config.module.rule('vue').uses.delete('cache-loader');
config.module.rule('js').uses.delete('cache-loader');
config.module.rule('ts').uses.delete('cache-loader');
config.module.rule('tsx').uses.delete('cache-loader');
}
}
<div class="container">
<div class="row">
<div class="col-4 px-3">
<div class="card my-class">
Test
suifyuwiygfuisygusdifyg
weiurwoeurwoeur
ewoiruwoeurioweruowei
weioruweoruoweiru
</div>
</div>
<div class="col-4 px-3">
<div class="card my-class">
Test
suifyuwiygfuisygusdifyg
weiurwoeurwoeur
ewoiruwoeurioweruowei
weioruweoruoweiru
</div>
</div>
<div class="col-4 px-3">
<div class="card my-class">
Test
suifyuwiygfuisygusdifyg
weiurwoeurwoeur
ewoiruwoeurioweruowei
weioruweoruoweiru
</div>
</div>
</div>