|
按钮事件
Model.prototype.button5Click = function(event){
GetPostsNoByAreaId();
};
function GetPostsNoByAreaId()
{
$.ajax({
type: "POST",
url: "http://"+ serverAddress +"/Service/ForumService.ashx",
data: {action:'LOADPostlistAll',num:postsNum},
dataType: "json",
async: false,
success: function (data) {
var html2 = "";
for(var i = 0;i < data.length;i++)
{
html2 += ' <li xid="li'+i+ '"> ' +
' <a component="$UI/system/components/justep/button/button" xid="postsA" id="'+ data.postsId +'" Data-Bind="click:onLinkNews"> ' +
' <div component="$UI/system/components/justep/row/row" class="x-row"' +
' xid="row3"> ' +
' <div class="x-col x-col-25 pic" xid="col17"> ' +
' <img src="'+ data.postsImagePath +'"/> ' +
' </div> ' +
' <div class="x-col x-col-67" xid="col18" > ' +
' <div class="t-title t-text">' + data.postsTitile + '</div> ' +
' </div> ' +
' </div> ' +
' </a> ' +
' </li> ' ;
}
$('#postsListDivIndex').html(html2);
}
});
}
onLinkNews事件为什么不触发?
|
|