欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

关于Angular4.0 数据的绑定事项

程序员文章站 2022-03-18 19:22:34
...
关于Angular4.0 数据的绑定事项关于Angular4.0 数据的绑定事项关于Angular4.0 数据的绑定事项
function Load() {
            $.ajax({
                type: "get",
                url: "/BizAccount/BizAccountHandle.ashx?Action=GetAccountInfo&Id=" + $("#hdAccountId").val(),
                success: function (result) {
                    if (result.State == "100000") {
                        //绑定用户信息
                        //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);//手续费注释
                        }
                        $("#BelongBusinessName").text(result.Data.FBelongBusinessName);
                        // console.log("ccm:" + result.Data.FBelongBusinessName + "===" + $("#BelongBusinessName").text());
                    } else {
                        alert(result.Message);
                    }
                }
            })
        }

以上就是关于Angular4.0 数据的绑定事项的详细内容,更多请关注其它相关文章!