0
之間我有把字符串從資源單引號
<asp:TextBox runat="server" ID="TextBox1" value="<%$ Resources: WebResource, Search %>" onblur="if(this.value=='') this.value='Search';" onfocus="if(this.value=='Search') this.value='';" />
我怎麼可以做這樣的事情了的onblur
<asp:TextBox runat="server" ID="TextBox1" value="<%$ Resources: WebResource, Search %>" onblur="if(this.value=='') this.value='<%=Resources.WebResource.Search %>';" onfocus="if(this.value=='<%=Resources.WebResource.Search %') this.value='';" />
本地化的JavaScript內聯?
感謝Darin,我的Google Chrome篩選器出錯了 – johnny 2011-05-23 07:24:49