文章分类 -  html

摘要:$('.num').blur(function () { count = $(this).val() // 校验 if (isNaN(count)){ count = 1 } 数字返回false,否则返回true 阅读全文
posted @ 2020-08-31 09:31 Fmaj-7 阅读(109) 评论(0) 推荐(0)
摘要:jQuery blur() 方法 jQuery 事件方法 实例 添加函数到 blur 事件。当 <input> 字段失去焦点时发生 blur 事件: $("input").blur(function(){ alert("输入框失去了焦点");}); 尝试一下 » 定义和用法 当元素失去焦点时发生 b 阅读全文
posted @ 2020-08-31 09:27 Fmaj-7 阅读(156) 评论(0) 推荐(0)
摘要:1 打开转义1: 2 {% autoescape on %} 3 <div>{{data}}</div> 4 {% endautoescape %} 5 6 打开转义2: 7 <div>{{data}}</div> 8 9 关闭转义1: 10 {% autoescape off %} 11 <div 阅读全文
posted @ 2020-08-16 09:51 Fmaj-7 阅读(204) 评论(0) 推荐(0)
摘要:1 {% for id in obj %} 2 {{ id }} 3 {% empty %} 4 {{ 空值 }} 5 {% endfor %} 阅读全文
posted @ 2020-08-07 23:12 Fmaj-7 阅读(124) 评论(0) 推荐(0)
摘要:<form class="form-horizontal" role="form" method="post" enctype="multipart/form-data"> {% csrf_token %} <div class="form-group" style="float:right"> < 阅读全文
posted @ 2020-07-01 10:14 Fmaj-7 阅读(295) 评论(0) 推荐(0)
摘要:被删除的文本 对于被删除的文本使用 <del> 标签。 This line of text is meant to be treated as deleted text. <del>This line of text is meant to be treated as deleted text.</ 阅读全文
posted @ 2019-12-18 14:29 Fmaj-7 阅读(127) 评论(0) 推荐(0)