react 引入jquery

npm install jquery --save

在需要的页面:

import $ from  'jquery'

 

constructor(props){
// $(function(){
// alert(123);
// })

}

这种方式可以实现,具体怎么用不是很清楚

posted on 2018-12-05 11:29  luziluck  阅读(248)  评论(0编辑  收藏  举报

导航