本文介绍了如何在jquery中设置标签文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 我在我的java脚本代码下面给出了在aspx文件中使用的内容。这里我想为java脚本值设置标签文本。请帮我解决这个问题。 < script type = text / javascript > var a = $('#<% = Label1.ClientID %> ')的HTML(); var flashvars = {}; flashvars.userid =0; flashvars.username =shiva; flashvars.roomid = a; 这里我如何设置我的label1.text = flashvars.roomid 提前致谢。解决方案 ('#<% = Label1.ClientID %> ') html的(); var flashvars = {}; flashvars.userid =0; flashvars.username =shiva; flashvars.roomid = a; 这里我如何设置我的label1.text = flashvars.roomid 提前致谢。 这是解决方案。 var temp = ( #Label1)。html(); var flashvars = {}; flashvars.userid = 0; flashvars.username = shiva; flashvars.roomid = temp; Hi to all, I am giving below my java script code Which is using inside aspx file. Here i want to set label text for java script value. Please help me to fix this problem.<script type="text/javascript"> var a = $('#<%=Label1.ClientID%>').html(); var flashvars = {}; flashvars.userid = "0"; flashvars.username = "shiva"; flashvars.roomid = a;Here how i can set my label1.text = flashvars.roomidThanks in advance. 解决方案 ('#<%=Label1.ClientID%>').html(); var flashvars = {}; flashvars.userid = "0"; flashvars.username = "shiva"; flashvars.roomid = a;Here how i can set my label1.text = flashvars.roomidThanks in advance.here is the solution for that.var temp=("#Label1").html(); var flashvars = {}; flashvars.userid = "0"; flashvars.username = "shiva"; flashvars.roomid = temp; 这篇关于如何在jquery中设置标签文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-21 08:58