1.jquery给img动静增加alt属性
$(document).ready(function(){
$("img").each(function(){
$(this).attr('alt','11111');
});
});
2.动静增加keywords、description关键字
$("meta[http-equiv='X-UA-Compatible']").after(
`<meta name="keywords" content="${keywords}">
<meta name="description" content="${description}">`
);
3.动静增加页面title
document.title = 'title';
发表回复