China, hit last year by its first trade deficit in four years, is putting strict curbs on imports of electronic products and machinery.