首頁  >  文章  >  web前端  >  關於Angular4.0 資料的綁定事項

關於Angular4.0 資料的綁定事項

炎欲天舞
炎欲天舞原創
2017-08-04 15:09:151281瀏覽

##

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 資料的綁定事項的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
上一篇:圖片懶加載下一篇:圖片懶加載