ASP.NET MVC3 jQuery mobile page's Ajax code binding using PageInit event

后端 未结 6 1188
北恋
北恋 2020-12-10 23:00

We are writing JQueryMobile application using ASP.NET MVC3 + JqueryMobile RC1. Few pages have their own Ajax methods which we call using jQuery code ($.getJSON()

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 23:40

    You could keep a variable IsPageInitialized = false for each page, bind events only if this variable is false and set it to true when you assign the event handlers.

提交回复
热议问题