摘要: 因为有3个标签,所以写3个标签处理器类1.ChooseTagpublic class ChooseTag extends SimpleTagSupport { //定义一个标记,用于控制跳转去向. public Boolean tag = true; public Boolean ... 阅读全文
posted @ 2015-10-28 22:28 宋发准 阅读(438) 评论(0) 推荐(0) 编辑
摘要: java自定义标签还是比较重要的一般分为以下几步1,写自定义标签类,2,写tld文件3,写jsp页面下面就写几个例子一,模仿foreach标签1.写java类public class ForeachTag extends SimpleTagSupport { //这个参数是用来传入要遍... 阅读全文
posted @ 2015-10-28 22:21 宋发准 阅读(828) 评论(0) 推荐(0) 编辑
摘要: var str = ""; $("table tr").each(function (index, value) { var text = $(this).children("td").eq(2).text(); if (index == ... 阅读全文
posted @ 2015-10-28 14:52 宋发准 阅读(433) 评论(0) 推荐(0) 编辑