0

我收到一个用户的错误报告,告诉我在这个方法上发生了一个错误:

public string SaveItem(int item_id,
                       string item_name,
                       int item_temp,
                       string item_number)
    {...}

错误是针对“item_temp”参数的。

所以这个参数被称为null。但这是我在 ajax 调用中在 jquery 中填充此参数的方式:

item_temp: ($('#myTextBox').val().length > 0 ? parseInt($('#myTextBox').val()) : -99999999),

它怎么能被称为null?

4

0 回答 0