Convert some JavaScript to JQuery

I have some JavaScript code that does the following link.NavigateUrl = string.Format("javascript:MyFunction({0}, {1});", ID1, ID2); So when the link is click MyFunction will be called and the dynamic parameters will be passed in. How can I pass in these parameters using jQuery like: $(function(){ $('#MyLinksID').click(function(){ console.log('Want to have access the two params here'); }); So how can I access the params from within my click event?

以上就是Convert some JavaScript to JQuery的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准