Hi Jun,
It sounds like the request you’re sending to the /cart/change.js endpoint is incomplete or doesn’t contain correct values for the ‘line’ or ‘id’ parameters. Can you log the data object to check that it returns the correct line, quantity, and id values? If these are not being logged correctly then you can identify that data is not being pulled from Shopify correctly.
I’d also recommend reviewing the Ajax documentation to ensure you’re accessing the cart/change.js endpoint correctly.