I have done the part where employees sent by the United States to China and employees sent by China to the United States are levied in the United States, so I think your situation should be similar.
Foreigners working in the United States must declare and pay taxes when they earn income. If they do this in a short time, they will declare it through 1040nra and collect the percentage according to your time in the United States in the middle of that year.
However, if American employees are sent abroad, they enjoy two kinds of preferential subsidies, 9065438 +0 foreign tax credit or 965438 +0 1 foreign income, so although they pay taxes from two countries, there is not much loss. This is American tax law. I haven't studied China's tax laws specifically, and most of them follow them, so relevant policies should also be found in international tax laws and regulations, but the specific chapters are not clear.
In addition, China and the United States have a tax treaty (available on Google), which is very general, but I remember that there is a definition of residents in Article 1, and you can judge how the tax revenue of the two countries should be distributed according to that.
In addition, all tax treatments are equal, so since the United States has expatriate subsidies, so will China.
If you don't know the specific situation, you can ask the tax department of the company or the outsourcing consultants of many companies to do expat/inpat tax. They should be very professional and will take care of it for you.
I hope this helps. Good luck.