- 博客(4)
- 收藏
- 关注
原创 在js中如何优雅地写html代码
函数脚本:function tohtml(tmpl,data){ var ret = tmpl.toString().match(/\/\*>([\s\S]*?)<\*\//)[1];//取得 html 代码模板 ret = ret.replace(/\$\{\{[^${{]+\}\}/g, function (variable) { variable = variable.replace('${{', '').replace('}}', '');//取得模板中
2021-11-06 16:51:33
400
原创 用markdown为微信公众号排版
p{ font-size:16px; line-height:28px; color:#595959; font-family:微软雅黑; margin:15px!important; padding:0 10px 0 17px;}pre,code{ font-size:14px; font-family:Roboto,CourierNew,Consolas,Inconsol...
2020-04-04 11:55:25
395
转载 在线考试防作弊js代码
<html><head><script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script></head><body>测试内容<input></input></body><script type="tex...
2020-03-29 17:55:31
4643
6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人