当前位置: 移动技术网 > IT编程>开发语言>JavaScript > 浅谈React中组件逻辑复用的那些事儿

浅谈React中组件逻辑复用的那些事儿

2020年06月23日  | 移动技术网IT编程  | 我要评论

基本每个开发者都需要考虑逻辑复用的问题,否则你的项目中将充斥着大量的重复代码。那么 react 是怎么复用组件逻辑的呢?本文将一一介绍 react 复用组件逻辑的几种方法,希望你读完之后能够有所收获。如果你对这些内容已经非常清楚,那么略过本文即可。

我已尽量对文中的代码和内容进行了校验,但是因为自身知识水平限制,难免有错误,欢迎在评论区指正。

1. mixins

mixins 事实上是 react.createclass 的产物了。当然,如果你曾经在低版本的 react 中使用过 mixins,例如 react-timer-mixin, react-addons-pure-render-mixin,那么你可能知道,在 react 的新版本中我们其实还是可以使用 mixin,虽然 react.createclass 已经被移除了,但是仍然可以使用第三方库 create-react-class,来继续使用 mixin。甚至,es6 写法的组件,也同样有方式去使用 mixin。当然啦,这不是本文讨论的重点,就不多做介绍了,如果你维护的老项目在升级的过程中遇到这类问题,可以与我探讨。

新的项目中基本不会出现 mixins,但是如果你们公司还有一些老项目要维护,其中可能就应用了 mixins,因此稍微花点时间,了解下 mixins 的使用方法和原理,还是有必要的。倘若你完全没有这方面的需求,那么跳过本节亦是可以的。

mixins 的使用

react 15.3.0 版本中增加了 purecomponent。而在此之前,或者如果你使用的是 react.createclass 的方式创建组件,那么想要同样的功能,就是使用 react-addons-pure-render-mixin,例如:

//下面代码在新版react中可正常运行,因为现在已经无法使用 `react.createclass`,我就不使用 `react.createclass` 来写了。

const createreactclass = require('create-react-class');
const purerendermixin = require('react-addons-pure-render-mixin');

const mydialog = createreactclass({
  displayname: 'mydialog',
  mixins: [purerendermixin],
  //other code
  render() {
    return (
      <div>
        {/* other code */}
      </div>
    )
  }
});

首先,需要注意,mixins 的值是一个数组,如果有多个 mixins,那么只需要依次放在数组中即可,例如: mixins: [purerendermixin, timermixin]。

mixins 的原理

mixins 的原理可以简单理解为将一个 mixin 对象上的方法增加到组件上。类似于 $.extend 方法,不过 react 还进行了一些其它的处理,例如:除了生命周期函数外,不同的 mixins 中是不允许有相同的属性的,并且也不能和组件中的属性和方法同名,否则会抛出异常。另外即使是生命周期函数,constructor 、render 和 shouldcomponentupdate 也是不允许重复的。

而如 compoentdidmount 的生命周期,会依次调用 mixins,然后再调用组件中定义的 compoentdidmount。

例如,上面的 purerendermixin 提供的对象中,有一个 shouldcomponentupdate 方法,即是将这个方法增加到了 mydialog 上,此时 mydialog 中不能再定义 shouldcomponentupdate,否则会抛出异常。

//react-addons-pure-render-mixin 源码
var shallowequal = require('fbjs/lib/shallowequal');

module.exports = {
 shouldcomponentupdate: function(nextprops, nextstate) {
  return (
   !shallowequal(this.props, nextprops) ||
   !shallowequal(this.state, nextstate)
  );
 },
};

mixins 的缺点

mixins 引入了隐式的依赖关系。
例如,每个 mixin 依赖于其他的 mixin,那么修改其中一个就可能破坏另一个。

mixins 会导致名称冲突
如果两个 mixin 中存在同名方法,就会抛出异常。另外,假设你引入了一个第三方的 mixin,该 mixin 上的方法和你组件的方法名发生冲突,你就不得不对方法进行重命名。

mixins 会导致越来越复杂
mixin 开始的时候是简单的,但是随着时间的推移,容易变得越来越复杂。例如,一个组件需要一些状态来跟踪鼠标悬停,为了保持逻辑的可重用性,将 handlemouseenter()、handlemouseleave() 和 ishovering() 提取到 hovermixin() 中。

然后其他人可能需要实现一个提示框,他们不想复制 hovermixin() 的逻辑,于是他们创建了一个使用 hovermixin 的 tooltipmixin,tooltipmixin 在它的 componentdidupdate 中读取 hovermixin() 提供的 ishovering() 来决定显示或隐藏提示框。

几个月之后,有人想将提示框的方向设置为可配置的。为了避免代码重复,他们将 gettooltipoptions() 方法增加到了 tooltipmixin 中。结果过了段时间,你需要再同一个组件中显示多个提示框,提示框不再是悬停时显示了,或者一些其他的功能,你需要解耦 hovermixin() 和 tooltipmixin 。另外,如果很多组件使用了某个 mixin,mixin 中新增的功能都会被添加到所有组件中,事实上很多组件完全不需要这些新功能。

渐渐地,封装的边界被侵蚀了,由于很难更改或移除现有的mixin,它们变得越来越抽象,直到没有人理解它们是如何工作的。

react 官方认为在 react 代码库中,mixin 是不必要的,也是有问题的。推荐开发者使用高阶组件来进行组件逻辑的复用。

2. hoc

react 官方文档对 hoc 进行了如下的定义:高阶组件(hoc)是 react 中用于复用组件逻辑的一种高级技巧。hoc 自身不是 react api 的一部分,它是一种基于 react 的组合特性而形成的设计模式。

简而言之,高阶组件就是一个函数,它接受一个组件为参数,返回一个新组件。

高阶组件的定义形如下面这样:

//接受一个组件 wrappedcomponent 作为参数,返回一个新组件 proxy
function withxxx(wrappedcomponent) {
  return class proxy extends react.component {
    render() {
      return <wrappedcomponent {...this.props}>
    }
  }
}

开发项目时,当你发现不同的组件有相似的逻辑,或者发现自己在写重复代码的时候,这时候就需要考虑组件复用的问题了。

这里我以一个实际开发的例子来说明,近期各大app都在适配暗黑模式,而暗黑模式下的背景色、字体颜色等等和正常模式肯定是不一样的。那么就需要监听暗黑模式开启关闭事件,每个ui组件都需要根据当前的模式来设置样式。

每个组件都去监听事件变化来 setstate 肯定是不可能的,因为会造成多次渲染。

这里我们需要借助 context api 来做,我以新的 context api 为例。如果使用老的 context api 实现该功能,需要使用发布订阅模式来做,最后利用 react-native / react-dom 提供的 unstable_batchedupdates 来统一更新,避免多次渲染的问题(老的 context api 在值发生变化时,如果组件中 shouldcomponentupdate 返回了 false,那么它的子孙组件就不会重新渲染了)。

顺便多说一句,很多新的api出来的时候,不要急着在项目中使用,比如新的 context api,如果你的 react 版本是 16.3.1, react-dom 版本是16.3.3,你会发现,当你的子组件是函数组件时,即是用 context.consumer 的形式时,你是能获取到 context 上的值,而你的组件是个类组件时,你根本拿不到 context 上的值。

同样的 react.forwardref 在该版本食用时,某种情况下也有多次渲染的bug。都是血和泪的教训,不多说了,继续暗黑模式这个需求。

我的想法是将当前的模式(假设值为 light / dark)挂载到 context 上。其它组件直接从 context 上获取即可。不过我们知道的是,新版的 contextapi 函数组件和类组件,获取 context 的方法是不一致的。而且一个项目中有非常多的组件,每个组件都进行一次这样的操作,也是重复的工作量。于是,高阶组件就派上用场啦(ps:react16.8 版本中提供了 usecontext 的 hook,用起来很方便)

当然,这里我使用高阶组件还有一个原因,就是我们的项目中还包含老的 context api (不要问我为什么不直接重构下,牵扯的人员太多了,没法随便改),新老 context api 在一个项目中是可以共存的,不过我们不能在同一个组件中同时使用。所以如果一个组件中已经使用的旧的 context api,要想从新的 context api 上获取值,也需要使用高阶组件来处理它。

于是,我编写了一个 withcolortheme 的高阶组件的雏形(这里也可以认为 withcolortheme 是一个返回高阶组件的高阶函数):

import themecontext from './context';
function withcolortheme(options={}) {
  return function(wrappedcomponent) {
    return class proxycomponent extends react.component {
      static contexttype = themecontext;
      render() {
        return (<wrappedcomponent {...this.props} colortheme={this.context}/>)
      }
    }
  }
}

包装显示名称

上面这个雏形存在几个问题,首先,我们没有为 proxycomponent 包装显示名称,因此,为其加上:

import themecontext from './context';

function withcolortheme(options={}) {
  return function(wrappedcomponent) {
    class proxycomponent extends react.component {
      static contexttype = themecontext;
      render() {
        return (<wrappedcomponent {...this.props} colortheme={this.context}/>)
      }
    }
  }
  function getdisplayname(wrappedcomponent) {
    return wrappedcomponent.displayname || wrappedcomponent.name || 'component';
  }
  const displayname = `withcolortheme(${getdisplayname(wrappedcomponent)})`;
  proxycomponent.displayname = displayname;
  return proxycomponent;
}

我们来看一下,不包装显示名称和包装显示名称的区别:

react developer tools 中调试

reactnative的红屏报错

复制静态方法

众所周知,使用 hoc 包装组件,需要复制静态方法,如果你的 hoc 仅仅是某几个组件使用,没有静态方法需要拷贝,或者需要拷贝的静态方法是确定的,那么你手动处理一下也可以。

因为 withcolortheme 这个高阶组件,最终是要提供给很多业务使用的,无法限制别人的组件写法,因此这里我们必须将其写得通用一些。

hoist-non-react-statics 这个依赖可以帮助我们自动拷贝非 react 的静态方法,这里有一点需要注意,它只会帮助你拷贝非 react 的静态方法,而非被包装组件的所有静态方法。我第一次使用这个依赖的时候,没有仔细看,以为是将 wrappedcomponent 上所有的静态方法都拷贝到 proxycomponent。然后就遇到了 xxx.propstypes.style undefined is not an object 的红屏报错(reactnative调试)。因为我没有手动拷贝 proptypes,错误的以为 hoist-non-react-statics 会帮我处理了。

hoist-non-react-statics 的源码非常短,有兴趣的话,可以看一下,我当前使用的 3.3.2 版本。

因此,诸如 childcontexttypes、contexttype、contexttypes、defaultprops、displayname、getdefaultprops、getderivedstatefromerror、getderivedstatefromprops
mixins、proptypes、type 等不会被拷贝,其实也比较容易理解,因为 proxycomponent 中可能也需要设置这些,不能简单去覆盖。

import themecontext from './context';
import hoistnonreactstatics from 'hoist-non-react-statics';
function withcolortheme(options={}) {
  return function(wrappedcomponent) {
    class proxycomponent extends react.component {
      static contexttype = themecontext;
      render() {
        return (<wrappedcomponent {...this.props} colortheme={this.context}/>)
      }
    }
  }
  function getdisplayname(wrappedcomponent) {
    return wrappedcomponent.displayname || wrappedcomponent.name || 'component';
  }
  const displayname = `withcolortheme(${getdisplayname(wrappedcomponent)})`;
  proxycomponent.displayname = displayname;
  proxycomponent.wrappedcomponent = wrappedcomponent;
  proxycomponent.proptypes = wrappedcomponent.proptypes;
  //contexttype contexttypes 和 childcontexttypes 因为我这里不需要,就不拷贝了
  return proxycomponent;
}

现在似乎差不多了,不过呢,hoc 还有一个问题,就是 ref 传递的问题。如果不经过任何处理,我们通过 ref 拿到的是 proxycomponent 的实例,而不是原本想要获取的 wrappedcomponent 的实例。

ref 传递

虽然我们已经用无关的 props 进行了透传,但是 key 和 ref 不是普通的 prop,react 会对它进行特别处理。

所以这里我们需要对 ref 特别处理一下。如果你的 reac-dom 是 16.4.2 或者你的 react-native 版本是 0.59.9 以上,那么可以放心的使用 react.forwardref 进行 ref 转发,这样使用起来也是最方便的。

使用 react.forwardref 转发

import themecontext from './context';
import hoistnonreactstatics from 'hoist-non-react-statics';
function withcolortheme(options={}) {
  return function(wrappedcomponent) {
    class proxycomponent extends react.component {
      static contexttype = themecontext;
      render() {
        const { forwardref, ...wrapperprops } = this.props;
        return <wrappedcomponent {...wrapperprops} ref={forwardref} colortheme={ this.context } />
      }
    }
  }
  function getdisplayname(wrappedcomponent) {
    return wrappedcomponent.displayname || wrappedcomponent.name || 'component';
  }
  const displayname = `withcolortheme(${getdisplayname(wrappedcomponent)})`;
  proxycomponent.displayname = displayname;
  proxycomponent.wrappedcomponent = wrappedcomponent;
  proxycomponent.proptypes = wrappedcomponent.proptypes;
  //contexttype contexttypes 和 childcontexttypes 因为我这里不需要,就不拷贝了
  if (options.forwardref) {
    let forwarded = react.forwardref((props, ref) => (
      <proxycomponent {...props} forwardref={ref} />
    ));
    forwarded.displayname = displayname;
    forwarded.wrappedcomponent = wrappedcomponent;
    forwarded.proptypes = wrappedcomponent.proptypes;
    return hoistnonreactstatics(forwarded, wrappedcomponent);
  } else {
    return hoistnonreactstatics(proxycomponent, wrappedcomponent);
  }
}

假设,我们对 textinput 进行了装饰,如 export default withcolortheme({forwardref: true})(textinput)。

使用: <textinput ref={v => this.textinput = v}>

如果要获取 wrappedcomponent 的实例,直接通过 this.textinput 即可,和未使用 withcolortheme 装饰前一样获取。

通过方法调用 getwrappedinstance

import themecontext from './context';
import hoistnonreactstatics from 'hoist-non-react-statics';
function withcolortheme(options={}) {
  return function(wrappedcomponent) {
    class proxycomponent extends react.component {
      static contexttype = themecontext;

      getwrappedinstance = () => {
        if (options.forwardref) {
          return this.wrappedinstance;
        }
      }

      setwrappedinstance = (ref) => {
        this.wrappedinstance = ref;
      }

      render() {
        const { forwardref, ...wrapperprops } = this.props;
        let props = {
          ...this.props
        };

        if (options.forwardref) {
          props.ref = this.setwrappedinstance;
        }
        return <wrappedcomponent {...props} colortheme={ this.context } />
      }
    }
  }
  
  function getdisplayname(wrappedcomponent) {
    return wrappedcomponent.displayname || wrappedcomponent.name || 'component';
  }

  const displayname = `withcolortheme(${getdisplayname(wrappedcomponent)})`;
  proxycomponent.displayname = displayname;
  proxycomponent.wrappedcomponent = wrappedcomponent;
  proxycomponent.proptypes = wrappedcomponent.proptypes;
  //contexttype contexttypes 和 childcontexttypes 因为我这里不需要,就不拷贝了
  if (options.forwardref) {
    let forwarded = react.forwardref((props, ref) => (
      <proxycomponent {...props} forwardref={ref} />
    ));
    forwarded.displayname = displayname;
    forwarded.wrappedcomponent = wrappedcomponent;
    forwarded.proptypes = wrappedcomponent.proptypes;
    return hoistnonreactstatics(forwarded, wrappedcomponent);
  } else {
    return hoistnonreactstatics(proxycomponent, wrappedcomponent);
  }
}

同样的,我们对 textinput 进行了装饰,如 export default withcolortheme({forwardref: true})(textinput)。

使用: <textinput ref={v => this.textinput = v}>

如果要获取 wrappedcomponent 的实例,那么需要通过 this.textinput.getwrappedinstance() 获取被包装组件 textinput 的实例。

最大化可组合

我先说一下,为什么我将它设计为下面这样:

function withcolortheme(options={}) {
  function(wrappedcomponent) {

  }
}

而不是像这样:

function withcolortheme(wrappedcomponent, options={}) {
}

主要是使用装饰器语法比较方便,而且很多业务中也使用了 react-redux:

@connect(mapstatetoprops, mapdispatchtoprops)
@withcolortheme()
export default class textinput extends component {
  render() {}
}

这样设计,可以不破坏原本的代码结构。否则的话,原本使用装饰器语法的业务改起来就有点麻烦。

回归到最大化可组合,看看官方文档怎么说:

像 connect(react-redux 提供) 函数返回的单参数 hoc 具有签名 component => component。输出类型与输入类型相同的函数很容易组合在一起。

// ... 你可以编写组合工具函数
// compose(f, g, h) 等同于 (...args) => f(g(h(...args)))
const enhance = compose(
 // 这些都是单参数的 hoc
 withrouter,
 connect(commentselector)
)
const enhancedcomponent = enhance(wrappedcomponent)

compose 的源码可以看下 redux 的实现,代码很短。

再复杂化一下就是:

withrouter(connect(commentselector)(withcolortheme(options)(wrappedcomponent)));

我们的 enhance 可以编写为:

const enhance = compose(
 withrouter,
 connect(commentselector),
 withcolortheme(options)
)
const enhancedcomponent = enhance(wrappedcomponent)

如果我们是写成 xxx(wrappedcomponent, options) 的形式的话,那么上面的代码将变成:

const enhancedcomponent = withrouter(connect(withcolortheme(wrappedcomponent, options), commentselector))
试想一下,如果还有更多的 hoc 要使用,这个代码会变成什么样子?

hoc的约定和注意事项

约定

  • 将不相关的 props 传递给被包裹的组件(hoc应透传与自身无关的 props)
  • 最大化可组合性
  • 包装显示名称以便轻松调试

注意事项

  • 不要在 render 方法中使用 hoc

react 的 diff 算法(称为协调)使用组件标识来确定它是应该更新现有子树还是将其丢弃并挂载新子树。 如果从 render 返回的组件与前一个渲染中的组件相同(===),则 react 通过将子树与新子树进行区分来递归更新子树。 如果它们不相等,则完全卸载前一个子树。

这不仅仅是性能问题 —— 重新挂载组件会导致该组件及其所有子组件的状态丢失。

如果在组件之外创建 hoc,这样一来组件只会创建一次。因此,每次 render 时都会是同一个组件。

  • 务必复制静态方法
  • refs 不会被传递(需要额外处理)

3. 反向继承

react 官方文档上有这样一段描述: hoc 不会修改传入的组件,也不会使用继承来复制其行为。相反,hoc 通过将组件包装在容器组件中来组成新组件。hoc 是纯函数,没有副作用。

因此呢,我觉得反向继承不是 react 推崇的方式,这里我们可以做一下了解,某些场景下也有可能会用到。

反向继承

function withcolor(wrappedcomponent) {
  class proxycomponent extends wrappedcomponent {
    //注意 proxycomponent 会覆盖 wrappedcomponent 的同名函数,包括 state 和 props
    render() {
      //react.cloneelement(super.render(), { style: { color:'red' }})
      return super.render();
    }
  }
  return proxycomponent;
}

和上一节不同,反向继承不会增加组件的层级,并且也不会有静态属性拷贝和 refs 丢失的问题。可以利用它来做渲染劫持,不过我目前没有什么必须要使用反向继承的场景。

虽然它没有静态属性和 refs的问题,也不会增加层级,但是它也不是那么好用,会覆盖同名属性和方法这点就让人很无奈。另外虽然可以修改渲染结果,但是不好注入 props。

4. render props

首先, render props 是指一种在 react 组件之间使用一个值为函数的 prop 共享代码的简单技术。

具有 render prop 的组件接受一个函数,该函数返回一个 react 元素并调用它而不是实现自己的渲染逻辑。

<route
  {...rest}
  render={routeprops => (
    <fadein>
      <component {...routeprops} />
    </fadein>
  )}
/>

reactnative 的开发者,其实 render props 的技术使用的很多,例如,flatlist 组件:

import react, {component} from 'react';
import {
  flatlist,
  view,
  text,
  touchablehighlight
} from 'react-native';

class mylist extends component {
  data = [{ key: 1, title: 'hello' }, { key: 2, title: 'world' }]
  render() {
    return (
      <flatlist
        style={{margintop: 60}}
        data={this.data}
        renderitem={({ item, index }) => {
          return (
            <touchablehighlight
              onpress={() => { alert(item.title) }}
            >
              <text>{item.title}</text>
            </touchablehighlight>
          )
        }}
        listheadercomponent={() => {
          return (<text>以下是一个list</text>)
        }}
        listfootercomponent={() => {
          return <text>没有更多数据</text>
        }}
      />
    )
  }
}

例如: flatlist 的 renderitem、listheadercomponent 就是render prop。

注意,render prop 是因为模式才被称为 render prop ,你不一定要用名为 render 的 prop 来使用这种模式。render prop 是一个用于告知组件需要渲染什么内容的函数 prop。

其实,我们在封装组件的时候,也经常会应用到这个技术,例如我们封装一个轮播图组件,但是每个页面的样式是不一致的,我们可以提供一个基础样式,但是也要允许自定义,否则就没有通用价值了:

//提供一个 renderpage 的 prop
class swiper extends react.purecomponent {
  getpages() {
    if(typeof renderpage === 'function') {
      return this.props.renderpage(xx,xxx)
    }
  }
  render() {
    const pages = typeof renderpage === 'function' ? this.props.renderpage(xx,xxx) : xxxx;
    return (
      <view>
        <animated.view>
          {pages}
        </animated.view>
      </view>
    )
  }
}

注意事项

render props 和 react.purecomponent 一起使用时要小心

如果在 render 方法里创建函数,那么 render props,会抵消使用 react.purecomponent 带来的优势。因为浅比较 props 的时候总会得到 false,并且在这种情况下每一个 render 对于 render prop 将会生成一个新的值。

import react from 'react';
import { view } from 'react-native';
import swiper from 'xxx';
class myswiper extends react.component {
  render() {
    return (
      <swiper 
        renderpage={(pagedate, pageindex) => {
          return (
            <view></view>
          )
        }}
      />
    )    
  }
}

这里应该比较好理解,这样写,renderpage 每次都会生成一个新的值,很多 react 性能优化上也会提及到这一点。我们可以将 renderpage 的函数定义为实例方法,如下:

import react from 'react';
import { view } from 'react-native';
import swiper from 'xxx';
class myswiper extends react.component {
  renderpage(pagedate, pageindex) {
    return (
      <view></view>
    )
  }
  render() {
    return (
      <swiper 
        renderpage={this.renderpage}
      />
    )    
  }
}

如果你无法静态定义 prop,则 <swiper> 应该扩展 react.component,因为也没有浅比较的必要了,就不要浪费时间去比较了。

5. hooks

hook 是 react 16.8 的新增特性,它可以让你在不编写 class 的情况下使用 state 以及其他的 react 特性。hoc 和 render props 虽然都可以

react 已经内置了一些 hooks,如: usestate、useeffect、usecontext、usereducer、usecallback、usememo、useref 等 hook,如果你还不清楚这些 hook,那么可以优先阅读一下官方文档。

我们主要是将如何利用 hooks 来进行组件逻辑复用。假设,我们有这样一个需求,在开发环境下,每次渲染时,打印出组件的 props。

import react, {useeffect} from 'react';

export default function uselogger(componentname,...params) {
  useeffect(() => {
    if(process.env.node_env === 'development') {
      console.log(componentname, ...params);
    }
  });
}

使用时:

import react, { usestate } from 'react';
import uselogger from './uselogger';

export default function counter(props) {
  let [count, setcount] = usestate(0);
  uselogger('counter', props);
  return (
    <div>
      <button onclick={() => setcount(count + 1)}>+</button>
      <p>{`${props.title}, ${count}`}</p>
    </div>
  )
}

另外,官方文档自定义 hook 章节也一步一步演示了如何利用 hook 来进行逻辑复用。我因为版本限制,还没有在项目中应用 hook ,虽然文档已经看过多次。读到这里,一般都会有一个疑问,那就是 hook 是否会替代 render props 和 hoc,关于这一点,官方也给出了答案:

通常,render props 和高阶组件只渲染一个子节点。我们认为让 hook 来服务这个使用场景更加简单。这两种模式仍有用武之地,例如,flatlist 组件的 renderitem 等属性,或者是 一个可见的容器组件或许会有它自己的 dom 结构。但在大部分场景下,hook 足够了,并且能够帮助减少嵌套。

hoc 最最最讨厌的一点就是层级嵌套了,如果项目是基于新版本进行开发,那么需要逻辑复用时,优先考虑 hook,如果无法实现需求,那么再使用 render props 和 hoc 来解决。

参考链接

mixins considered harmful

自定义hook
hooks faq

到此这篇关于浅谈react中组件逻辑复用的那些事儿的文章就介绍到这了,更多相关react 组件逻辑复用内容请搜索移动技术网以前的文章或继续浏览下面的相关文章希望大家以后多多支持移动技术网!

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网