0
如何在prototypejs中编写以下jquery?原型js中的点击函数
<a class="button view" style="cursor:pointer" id="addComment"></a>
$(function() {
$("#addComment").click(function(){
alert("hello world");
});
});
如何在prototypejs中编写以下jquery?原型js中的点击函数
<a class="button view" style="cursor:pointer" id="addComment"></a>
$(function() {
$("#addComment").click(function(){
alert("hello world");
});
});
Event.observe('addComment', 'click', function(event) {
alert('u clicked on click here');
});
请了投票,如果这有助于你:) –