I know that in JavaScript the syntax is as follows:
(我知道JavaScript中的语法如下:)
function myfunction(param){
//some code
}
Is there a way to declare a function in jQuery that can be added to an element?
(有没有一种方法可以在jQuery中声明可以添加到元素的函数?)
For example:(例如:)
$('#my_div').myfunction()
ask by multimediaxp translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…