Why are my “replacement parameters” getting transformed into empty strings?
问题 This is the code when "at rest": var report_parms = { GUID: "@Model.GUID", SerialNumber: "@Model.SerialNumber", ReportName: "@Model.ReportName" }; This is what it looks like at run-time, when stepping through the jQuery: var report_parms = { GUID: "", SerialNumber: "", ReportName: "" }; ...and this is the exception I get because those strings are empty: System.NullReferenceException was unhandled by user code Message=Object reference not set to an instance of an object. StackTrace: at