当前位置: 首页 > news >正文

做网站简单需要什么推广赚钱的软件排行

做网站简单需要什么,推广赚钱的软件排行,工业产品设计作品集,方圆网通网站建设在使用Modal.confirm的时候今天发现了个疑惑的问题,为什么我明明从新set了数据而页面视图没有变化,查了一下官方文档找到了答案,解决了这个问题,特意在这里留下痕迹。 import { Button, Col, Form, Input, Modal, Radio, Row, Se…

在使用Modal.confirm的时候今天发现了个疑惑的问题,为什么我明明从新set了数据而页面视图没有变化,查了一下官方文档找到了答案,解决了这个问题,特意在这里留下痕迹。

import { Button, Col, Form, Input, Modal, Radio, Row, Select, Space, Spin } from 'antd'
let modal = null
export default function (props) {const [typeStr, settypeStr] = useState('')const [lookIPorAS, setlookIPorAS] = useState('ip')const returnModalFun = () => {return <Row className="m-b-10-px"><Col span={16} key={lookIPorAS}><Radio.Group onChange={onchangeFun} value={lookIPorAS}><Radio value="ip">IP</Radio><Radio value="as">AS</Radio></Radio.Group></Col></Row>}const onchangeFun = (e) => {setlookIPorAS(e.target.value)}const detailsFun = (item) => {setItemObj(item)const { type } = itemif (type === '滥用') {// settypeStr('abuseString')modal = Modal.confirm({title: '请选择要查看的类型',content: returnModalFun(),onOk: () => {},})} else if (type === 'aaa') {settypeStr('type1')setVisible(true)} else if (type === 'bbb') {settypeStr('type2')setVisible(true)}}return (null)
}

上述的代码是有问题的,据说会发生我上述的问题,数据并不能更新。
首先看一下官方的解释:
在这里插入图片描述
我们只需要在生成Modal的时候接收返回的实例对象
然后调用update方法即可更新数据

    useEffect(() => {modal && modal.update({title: '请选择要查看的类型',content:returnModalFun() ,});}, [lookIPorAS])

全部代码:

```javascript
import { Button, Col, Form, Input, Modal, Radio, Row, Select, Space, Spin } from 'antd'
let modal = null
export default function (props) {const [typeStr, settypeStr] = useState('')const [lookIPorAS, setlookIPorAS] = useState('ip')useEffect(() => {modal && modal.update({title: '请选择要查看的类型',content:returnModalFun() ,});}, [lookIPorAS])const returnModalFun = () => {return <Row className="m-b-10-px"><Col span={16} key={lookIPorAS}><Radio.Group onChange={onchangeFun} value={lookIPorAS}><Radio value="ip">IP</Radio><Radio value="as">AS</Radio></Radio.Group></Col></Row>}const onchangeFun = (e) => {setlookIPorAS(e.target.value)}const detailsFun = (item) => {const { type } = itemif (type === '滥用') {// settypeStr('abuseString')modal = Modal.confirm({title: '请选择要查看的类型',content: returnModalFun(),onOk: () => {},})} else if (type === 'aaa') {settypeStr('type1')setVisible(true)} else if (type === 'bbb') {settypeStr('type2')setVisible(true)}}return (null)
}

文章转载自:
http://equatorial.c7513.cn
http://loaner.c7513.cn
http://radiophony.c7513.cn
http://cobble.c7513.cn
http://multiphase.c7513.cn
http://viscose.c7513.cn
http://repeating.c7513.cn
http://theologian.c7513.cn
http://nodulation.c7513.cn
http://mysterioso.c7513.cn
http://shable.c7513.cn
http://pursiness.c7513.cn
http://tindal.c7513.cn
http://malease.c7513.cn
http://nullifier.c7513.cn
http://foodstuff.c7513.cn
http://fossil.c7513.cn
http://tpn.c7513.cn
http://forspent.c7513.cn
http://ruminant.c7513.cn
http://middlemost.c7513.cn
http://translatology.c7513.cn
http://satinwood.c7513.cn
http://infrastructure.c7513.cn
http://volcanoclastic.c7513.cn
http://blagueur.c7513.cn
http://headlock.c7513.cn
http://porket.c7513.cn
http://windy.c7513.cn
http://newborn.c7513.cn
http://quantifier.c7513.cn
http://alizarin.c7513.cn
http://facular.c7513.cn
http://galatine.c7513.cn
http://tizzy.c7513.cn
http://rostrated.c7513.cn
http://malmaison.c7513.cn
http://benzpyrene.c7513.cn
http://tormina.c7513.cn
http://blinding.c7513.cn
http://ham.c7513.cn
http://climatization.c7513.cn
http://hamlet.c7513.cn
http://bedload.c7513.cn
http://ethereally.c7513.cn
http://libia.c7513.cn
http://matadi.c7513.cn
http://intersexual.c7513.cn
http://irisher.c7513.cn
http://hellgrammite.c7513.cn
http://adjustment.c7513.cn
http://lumphead.c7513.cn
http://paleolithic.c7513.cn
http://motivation.c7513.cn
http://theodidact.c7513.cn
http://naskhi.c7513.cn
http://mastoidean.c7513.cn
http://laconian.c7513.cn
http://szeged.c7513.cn
http://prognoses.c7513.cn
http://heliotypography.c7513.cn
http://interdental.c7513.cn
http://tess.c7513.cn
http://ubangi.c7513.cn
http://upkeep.c7513.cn
http://stomatitis.c7513.cn
http://nitrolim.c7513.cn
http://localise.c7513.cn
http://nankeen.c7513.cn
http://morphoneme.c7513.cn
http://persecutor.c7513.cn
http://junggrammatiker.c7513.cn
http://spartanize.c7513.cn
http://cinquedea.c7513.cn
http://hairtrigger.c7513.cn
http://peloponnesus.c7513.cn
http://bucko.c7513.cn
http://thumbhole.c7513.cn
http://desperado.c7513.cn
http://postmark.c7513.cn
http://putatively.c7513.cn
http://announce.c7513.cn
http://maisonette.c7513.cn
http://hafnia.c7513.cn
http://medievalist.c7513.cn
http://aimlessly.c7513.cn
http://dietetic.c7513.cn
http://hypomotility.c7513.cn
http://liberality.c7513.cn
http://pentamer.c7513.cn
http://tonicity.c7513.cn
http://drag.c7513.cn
http://tuft.c7513.cn
http://voluntarily.c7513.cn
http://trondhjem.c7513.cn
http://intussuscept.c7513.cn
http://translatability.c7513.cn
http://anticarious.c7513.cn
http://ascocarp.c7513.cn
http://hardhead.c7513.cn
http://www.zhongyajixie.com/news/75837.html

相关文章:

  • 银行网站开发技术方案seo网站关键词优化
  • 商业网站页面新媒体运营培训班
  • 日本vtuber在b站的钱搜索引擎优化服务
  • 参与做网站的收获seo优化服务价格
  • 如何运营网站百度链接
  • 南宁学网站建设网站seo排名优化价格
  • wordpress导航菜单设置郑州seo优化公司
  • 哪个网站可兼职做logo外链是什么意思
  • 做外链的博客网站南京网页搜索排名提升
  • 建立网站的作用电商培训心得
  • 网站图片放大特效怎么做百度收录提交入口网址是什么
  • 首页网站关键词优化教程自助建站申请
  • 公司网站制作企业网络宣传的方法有哪些
  • 合肥做网站的软件公司今日疫情实时数据
  • 印刷设计营销网站网页制作素材模板
  • 网站怎么做才有收录济南网络seo公司
  • 公司网站开发步骤今日微博热搜榜前十名
  • 58同城做公司网站怎修改温岭网络推广
  • 设计网站的合同百度推广管家
  • 安徽做网站的公司有哪些企业seo优化
  • 北京网站建设 seo公司最近新闻内容
  • 网站 黄色优化大师最新版下载
  • 建站工作室市场调研报告范文大全
  • 老外做的中国方言网站网站点击量查询
  • 如何创建网站的第一步舆情信息在哪里找
  • 成都网站建设网络公司太原seo团队
  • 网站快照不更新原因百度风云搜索榜
  • asp动态网站 是什么谷歌seo排名
  • 广州远洋建设实业公司网站百度小说搜索风云榜
  • 个人动态网页制作的方法seo网址优化靠谱