我收到了一位用户的错误报告,告诉我这个方法发生了错误:
public string SaveItem(int item_id,
string item_name,
int item_temp,
string item_number)
{...}
错误是'item_temp'参数。
所以这个参数被称为null。但是这里是我如何在jquery中填充这个参数,在ajax调用中:
item_temp: ($('#myTextBox').val().length > 0 ? parseInt($('#myTextBox').val()) : -99999999),
如何将其称为null?