JSF标签选择器

关于JSF outputText Convert动态获取值问题
<h:outputText value="hello" lang="en" style="color: red"></h:outputText>
转换为html为:
<span lang="en" style="color:red">hello</span>
如果获取h标签得值,则js代码要写为:

$("span:[lang='en']").text();

同样得,不论jsf代码如何,转换成html,取值就要按转换后的html代码取,因为在此代码是在浏览器中运行,先转译再运行。

猜你喜欢

转载自blog.csdn.net/weixin_43396067/article/details/84324726