问题描述
亲爱的专家,
我有一些div以下
Dear Experts,
I have some div's following
<div id ="students">
<div class="photo" id="ef6a5118-5282-4930-bb21-4f825da20840" önclick="GetDetailedItems(this,'T');">
<div> 2
<div> 3
<div> 4
<div> 5
</div>
</div></div></div></div>
我使用
I used
$('#students').html()
获取HTML代码包含div。
我已经获得了代码,但有些字符变为编码。意味着我得到了这样的结果...
to get the HTML Code contains divs.
I have get the code, but some characters become Encoded. Means I got the result like this...
<div class="photo" id="ef6a5118-5282-4930-bb21-4f825da20840" önclick="GetDetailedItems(this,"T");">
<div> 2
<div> 3
<div> 4
<div> 5
</div>
</div></div></div>
意味着在点击功能我已经传递了一个变量T,当我得到输出时,唱歌编码为html实体..
PLease帮我获得实际结果...
谢谢
Dileep
Means In the On click function I have passed a variable "T" and when i got the out put, the sing quotes encoded to html entity..
PLease help me to get the actual result...
Thanks
Dileep
推荐答案
获取HTML代码包含div。
我已经获得了代码,但有些字符变为编码。意味着我得到了这样的结果...
to get the HTML Code contains divs.
I have get the code, but some characters become Encoded. Means I got the result like this...
<div class="photo" id="ef6a5118-5282-4930-bb21-4f825da20840" önclick="GetDetailedItems(this,"T");">
<div> 2
<div> 3
<div> 4
<div> 5
</div>
</div></div></div>
意味着在点击功能我已经传递了一个变量T,当我得到输出时,唱歌编码为html实体..
PLease帮我获得实际结果...
谢谢
Dileep
Means In the On click function I have passed a variable "T" and when i got the out put, the sing quotes encoded to html entity..
PLease help me to get the actual result...
Thanks
Dileep
希望这会有所帮助
Hope this helps
这篇关于使用jquery时没有得到实际结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!