我在分配值时遇到问题。
当我调试并且存在正确的值时,但出现意外的语法错误?
我正在尝试从我的模型中获取值,但@model 带有绿色下划线,并且消息条件编译已关闭?
$("#btnSubmitYesNon").click(function (e) {
HideDialogNon();
e.preventDefault();
RequestNumber = @Model.RequestNumber;
ClientName = @Model.ClientName;
ReasonForValuation = @Model.ReasonForValuation;
ContactPerson = @Model.ContactPerson;
ContactNumber = @Model.ContactNumber;
Relation = @Model.Relation;
AccountNumber = @Model.AccountNumber;
BondAmount = @Model.BondAmount;
PurchasePrice = @Model.PurchasePrice;
DoNonRegisterdValuation(RequestNumber, ClientName, ReasonForValuation, ContactPerson, ContactNumber, Relation, AccountNumber, BondAmount, PurchasePrice);
});