For example, use Angular4.0 to bind data.
Function Load (){
$. Ajax ({
Type: "get ",
Url: "/BizAccount/BizAccountHandle. ashx? Action = GetAccountInfo & Id = "+ $ (" # hdAccountId "). val (),
Success: function (result ){
If (result. State = "100000 "){
// Bind user information
// Var userTemplate = document. getElementById ('js-template-accountInfo '). innerHTML;
// Var userTempFn = doT. template (userTemplate );
// Var userHtml = userTempFn (result. Data );
// $ (". Header" ).html (userHtml );
$ ("# UserName"). text (result. Data. FBelongName );
If (result. Data. BusinessTypeList & result. Data. BusinessTypeList. length> 0 ){
Var businessTemplate = document. getElementById ('js-template-businesstypeinfo'). innerHTML;
Var businessTempFn = doT. template (businessTemplate );
Var businessHtml = businessTempFn (result. Data. BusinessTypeList );
Console. log (result. Data. BankSupportEntryList );
$ (". MainContain. navigation. nav" ).html (businessHtml );
$ (". MainContain. navigation. nav. BusinessType: first"). addClass ("cuur ");
Var currentTypeId = GetCurrentTypeId ();
LoadChannelFeeList (currentTypeId); // fee description
}
$ ("# BelongBusinessName"). text (result. Data. FBelongBusinessName );
// Console. log ("ccm:" + result. Data. FBelongBusinessName + "=" + $ ("# BelongBusinessName"). text ());
} Else {
Alert (result. Message );
}
}
})
}