---
title: "teeda用a弹出/跳转画面时不用能label标签"
author: "legendsen"
date: "2008-06-12T14:44:51Z"
tags: []
slug: "teeda-a-label"
draft: false
lastmod: "2008-06-12T14:44:51Z"
id: 202497
url: "https://legendsen.iteye.com/blog/202497"
---

teeda用a弹出/跳转画面,需要一点注意事项.
正确的写法是这样的:
<a id="goCustomerMailSelect" class="toolbar" href="../../view/master/customerMailSelect.html?templateId=aaa&newwindow=true" target="_blank"><span id="mailSelectHeadNameLabel" /></a>

a的名字如果不国际化直接写死值"XXX",OK.
要是国际化,用<label id="mailListHeadName"/>
就不好用,不能解析成a,所以只能换成<span id="mailSelectHeadNameLabel" />
span不是用来显示值的,所以ID得加上Label结尾才行.
用<span id="mailSelectHeadName" />什么也不显示.

本HTML和目标HTML在不在一个文件夹,没关系.

这样到customerMailSelect.html画面时,templateId=aaa就会自动被本HTML对应的PAGE类中的属性templateId的值替换掉.如:templateId=20013