📌  相关文章
📜  在 jquery 中做出反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:08.045000             🧑  作者: Mango

代码示例2
class SomePlugin extends React.Component {
  componentDidMount() {
    this.$el = $(this.el);    this.$el.somePlugin();  }

  componentWillUnmount() {
    this.$el.somePlugin('destroy');  }

  render() {
    return 
this.el = el} />; } }