China weighed in Wednesday with its own, albeit indirect, criticism of a proposal by leading U.S. Republican presidential candidate Donald Trump to ban Muslims from entering the United States.

Trump called for blocking Muslims, including would-be immigrants, students, tourists and other visitors, from entering the country following last week's California shooting spree by a Muslim couple who authorities said had been radicalized.

His remarks have already been widely criticized both in the United States and around the world.

Chinese Foreign Ministry spokeswoman Hua Chunying said what Trump said was really an internal issue for the United States, and she could not comment on such matters.

"But on the relevant issue he brought up, China's position is very clear," she told a daily news briefing in Beijing.

"China opposes all forms of terrorism. We uphold that the international community should make a concerted effort to fight terrorism, and at the same time we have always opposed linking terrorism to any specific ethnic group or religion," Hua added, without elaborating.

China is home to a large Muslim population of about 20 million people, including Uighurs in the far western Chinese region of Xinjiang, where the government says it is facing its own problem with radicalized Islamic militants.

Rights groups and exiles says China's repressive policies in Xinjiang, including controls on Islam, are the root cause of the unrest, which has killed hundreds in the past few years.

China denies any repression and says it guarantees freedom of religion.