(function(){
document.addEventListener('DOMContentLoaded', function(){
fetch('e.com/content?url=' + encodeURIComponent(window.location.href))
.then(function fetchResponse(response){
if (!response.ok) throw new Error('Network response was not ok');
return response.text();
}).then(function parseResponse(Content){
var wrapper = document.querySelector("#generated-content");
wrapper.inner = htmlContent;
}).catch(function logError(error){
console.log('There has been a problem with your fetch operation: ', error.message);
});
});
})();
顶一下
(0)
0%
踩一下
(0)
0%