China and the United States reached a consensus in principle on some key issues during trade talks in Beijing, state news agency Xinhua reported on Friday.