我需要知道如何让像一个jQuery
function
,不与CSS选择器,就像这样:的Javascript功能的个性化
function getId(item) {
return document.getElementById(item);
}
getId('elementID').firstFunction('property').secondFunction('property');
,但我不知道究竟如何我送getId
结果firstFunction
做些什么到getId()
元素,然后使secondFunction
工作,我一直试图与prototype
,但我不能让它的工作。
你可以看看jQuery的如何处理它。 – pktangyue 2013-05-13 03:07:59