Home > Web Front-end > JS Tutorial > About Angular4.0 data binding matters

About Angular4.0 data binding matters

炎欲天舞
Release: 2017-08-04 15:09:15
Original
1299 people have browsed it

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);
                    }
                }
            })
        }
Copy after login

The above is the detailed content of About Angular4.0 data binding matters. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template