In this paper, a method of "saving foreign exchange" is used to investigate and study the comparative advantage of integrated circuits and mechotronics in Shanghai. Finally, some suggestions are offered concerning the dominant tendency of development in these two fields.