China and the U.S. are sparring over El Salvador's decision to drop Taiwan in favour of diplomatic relations with Beijing, with a Chinese spokesperson accusing Washington of trying to deter other nations from making a similar switch.