Unlike jQuery, where you simply use the dollar function to get the context variable, in Prototype you need to use the Event.element function.
与jQuery中使用美元符号函数获取上下文变量不同的是,在Prototype中需要使用Event . element函数。
In this case, we choose the String variable and supply the text value from the prototype method above (remember to include quotes to enclose the text).
在本例中,我们选择String变量并提供上面的原型方法中的文本值(记住在文本两边加上引号)。
You can use the instance variable called prototype to specify the basis for your object.
您还可以使用名为prototype实例变量来指定对象的基础。
应用推荐