2024-02-12 23:07:56 +08:00
|
|
|
utils.jq(() => {
|
2024-02-18 12:33:28 +08:00
|
|
|
const els = document.getElementsByClassName('ds-mdrender');
|
2024-02-12 23:07:56 +08:00
|
|
|
for (var i = 0; i < els.length; i++) {
|
|
|
|
const el = els[i];
|
|
|
|
const src = `${el.getAttribute('src')}?t=${new Date().getTime()}`;
|
|
|
|
utils.request(el, src, function(data) {
|
|
|
|
el.innerHTML = marked.parse(resp.data);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|