Py学习  »  Jquery

将javascript转换为jquery

bloggerious • 6 年前 • 897 次点击  

我有下面的javascript代码,我喜欢转换为jquery,但没有运气。

var mySplitResult = xvotesString[htmlid].split('~');
target3 = document.getElementById ('xvote-' + htmlid);
target3.style.width = mySplitResult[0] + 'px';
if (target4 = document.getElementById ('mnma-' + htmlid));
    target4.innerHTML = mySplitResult[1];;
if (target5 = document.getElementById ('mnmb-' + htmlid));
    target5.innerHTML = mySplitResult[2];;
if (target6 = document.getElementById ('mnmc-' + htmlid));
    target6.style.display='none';;
if (target6 = document.getElementById ('mnmd-' + htmlid));
    target6.style.display='block';
target7 = document.getElementById ('xvotes-' + htmlid);
target7.className = 'star-rating-noh';

非常感谢您的帮助。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/30848
 
897 次点击  
文章 [ 3 ]  |  最新文章 6 年前