随笔分类 -  前端

摘要:window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net window.location.host; //返回url 的主机部分,例如:mp.csdn.net window.location.hostna 阅读全文
posted @ 2022-05-16 11:05 if年少有为 阅读(111) 评论(0) 推荐(0) 编辑
摘要://*内容不可编辑。此行必须在setContent函数后 修改属性,否则属性设置不成功*/ $("#LAY_layedit_1").contents().find("body[contenteditable]").prop("contenteditable", false);//jquery获取if 阅读全文
posted @ 2022-05-13 10:27 if年少有为 阅读(676) 评论(0) 推荐(0) 编辑
摘要:layedit的富文本编辑器在数据提交后是无法设置清空文本区域的数据,这时候我们可以修改layedit.js 来实现layedit的数据清空。 向layedit.js中添加代码 //清楚编辑器中的内容 Edit.prototype.clearContent = function (index) { 阅读全文
posted @ 2022-05-11 21:18 if年少有为 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-01-02 10:51 if年少有为 阅读(3410) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-27 16:45 if年少有为 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-05 11:25 if年少有为 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-05 11:22 if年少有为 阅读(1874) 评论(0) 推荐(0) 编辑
摘要:1. 封装 下载 绿色版和 引入页面 2. 封装 使用的时候在 中直接 即可实现 的效果 阅读全文
posted @ 2019-11-05 10:57 if年少有为 阅读(1037) 评论(0) 推荐(0) 编辑
摘要:使用方法: 优点: 代码更简洁 缺点: 由于IE6 7不支持:after,使用 zoom:1触发 hasLayout。 代表网站: 小米、腾讯等 阅读全文
posted @ 2019-11-05 10:14 if年少有为 阅读(1775) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-05 10:13 if年少有为 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-05 10:07 if年少有为 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-05 09:59 if年少有为 阅读(329) 评论(0) 推荐(0) 编辑
摘要:解决ie低版本不认识html5标签 阅读全文
posted @ 2019-11-05 08:34 if年少有为 阅读(654) 评论(0) 推荐(0) 编辑