/asp:Label
我要去除这个label的空格
是要获取值之后去除空格?
<asp:Label ID="xp" runat="server" CssClass="xpy" ></asp:Label> <script>$('#xp').html($.trim($('#xp').html()))</script>
.trim()可以,如果你连中间空格也去,我这么写过….replace(" ","")