摘要: 学习来源:https://www.bilibili.com/video/BV1zq4y1p7ga?p=6&spm_id_from=pageDriver 工程化的概念: 实际的前端开发: 模块化(js的模块化、css的模块化、资源的模块化) 组件化 (复用现有的UI结构、样式、行为) 规范化(目录结构 阅读全文
posted @ 2022-05-18 16:39 perfect* 阅读(73) 评论(0) 推荐(0) 编辑
$(function() { $('#cnblogs_post_body img').each(function() { let imgSrc = $(this).attr('src'); let year = parseInt(imgSrc.substr(imgSrc.indexOf('g')+1,4)); if(year >= 2022){ imgSrc += `?watermark/2/text/amlndWl5YW4=/font/5a6L5L2T/fontsize/15/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast`; $(this).attr('src', imgSrc) } }) })