![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HTML->JavaScript
Cheengvho
这个作者很懒,什么都没留下…
展开
-
JS写动态active类
//第一种方法,建议用这种。$(function(){ $('#leftNav li').click(function (e) { /* e.preventDefault(); */ $('#leftNav li').removeClass('active'); $(this).addClass('active'); }); });//第二种方法。实际上和上面一个完全一样...原创 2018-02-28 10:30:15 · 5729 阅读 · 0 评论 -
JS判断注册页面输入并提示
//判断邮箱是否符合规范 var p = true; function checkemail() { var val = $("#emailAd").val(); if (!(val != null && val.trim() != '' && f)) { $("#emailTishi").html("<font color='red'>...原创 2018-02-28 10:33:21 · 1780 阅读 · 0 评论 -
JSTL和EL表达式的简单使用方法
要使用JSTL需要先安装JSTL标签库,安装方法和详情见http://www.runoob.com/jsp/jsp-jstl.html必须写(在JSP页面顶部),不然无法在该页面使用JSTL<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>使用以下标签可以循环加载${products}中的内容,直接加载出商品列...原创 2018-03-26 14:27:09 · 326 阅读 · 0 评论 -
CSS下拉菜单
<style>.dropdown { position: relative; display: inline-block;}.dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; ...转载 2018-04-07 12:47:00 · 96 阅读 · 0 评论