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

wordpress首次访问很卡慢搜索引擎的优化和推广

wordpress首次访问很卡慢,搜索引擎的优化和推广,比较好的网站建设品牌升级,网站建设难点是什么vue3 父子组件调用 父组件调用子组件方法 子组件使用defineExpose将方法抛出 父组件定义 function&#xff0c;子组件通过 defineExpose 暴露方法&#xff0c;父组件通过 ref 获取子组件实例&#xff0c;然后通过 ref 获取子组件方法。 // 父组件 <template><div>…

vue3 父子组件调用

父组件调用子组件方法 子组件使用defineExpose将方法抛出

父组件定义 function,子组件通过 defineExpose 暴露方法,父组件通过 ref 获取子组件实例,然后通过 ref 获取子组件方法。

// 父组件
<template><div><el-button @click="handleClick">点击显示侧边抽屉</el-button><ChildComponent ref="childRef" /></div>
</template><script setup lang="ts">
import ChildComponent from './ChildComponent.vue';const childRef = ref(null);function handleClick() {let row = '这是父组件给子组件弹窗抽屉传递分参数';childRef.value.showDrawer(row);
}
</script>
// 子组件
<template><div><el-drawer v-model="drawerVisible" title="这是子组件" size="70%" class="drawer-class"><div>这是子组件 --- {{ parentRow }}</div></el-drawer></div>
</template><script setup lang="ts" name="">
const drawerVisible = ref(false);
const emit = defineEmits(['detail']);
const parentRow = ref('');
// 显示弹窗
const showDrawer = (row) => {drawerVisible.value = true;parentRow.value = row;
};
defineExpose({showDrawer,
});
</script>

子组件调用父组件方法 defineEmits

// 父组件
<template><div><el-button @click="handleClick">点击显示侧边抽屉</el-button><ChildComponent ref="childRef" @childLoad="onLoad" /></div>
</template><script setup lang="ts" name="">
import ChildComponent from './ChildComponent.vue';const childRef = ref(null);
// 父组件调用子组件方法 --- 开始
function handleClick() {let row = '这是父组件给子组件弹窗抽屉传递分参数';childRef.value.showDrawer(row);
}
// 父组件调用子组件方法 --- 结束// 子组件调用父组件方法 --- 开始
function onLoad(row) {console.log('通过子组件点击按钮,触发父组件方法,并传递参数', row);
}
// 子组件调用父组件方法 --- 结束
</script>
// 子组件
<template><div><el-drawer v-model="drawerVisible" title="这是子组件" size="70%" class="drawer-class"><div>这是子组件 --- {{ parentRow }}</div><el-button type="success" @click="handleChildClick">点击按钮父组件会打印值</el-button></el-drawer></div>
</template><script setup lang="ts" name="">
const drawerVisible = ref(false);
const parentRow = ref('');// 父组件调用子组件方法 --- 开始
const showDrawer = (row) => {drawerVisible.value = true;parentRow.value = row;
};
defineExpose({showDrawer,
});
// 父组件调用子组件方法 --- 结束// 子组件调用父组件方法 --- 开始
const emit = defineEmits(['childLoad']);
function handleChildClick() {emit('childLoad', '子组件加载完成');
}
// 子组件调用父组件方法 --- 结束
</script>

文章转载自:
http://booky.jftL.cn
http://wyvern.jftL.cn
http://bastardize.jftL.cn
http://ascetical.jftL.cn
http://gisarme.jftL.cn
http://hying.jftL.cn
http://gunrunner.jftL.cn
http://pardonably.jftL.cn
http://palish.jftL.cn
http://bronchoconstriction.jftL.cn
http://debugger.jftL.cn
http://oratory.jftL.cn
http://bywork.jftL.cn
http://vasodilatation.jftL.cn
http://toilet.jftL.cn
http://camiknickers.jftL.cn
http://panatella.jftL.cn
http://pogromist.jftL.cn
http://cowardly.jftL.cn
http://kilovar.jftL.cn
http://asyntactic.jftL.cn
http://demotics.jftL.cn
http://faded.jftL.cn
http://inexcusably.jftL.cn
http://loftiness.jftL.cn
http://marsupialization.jftL.cn
http://inodorous.jftL.cn
http://ferdinand.jftL.cn
http://medina.jftL.cn
http://trundle.jftL.cn
http://tonsorial.jftL.cn
http://standoff.jftL.cn
http://overdraft.jftL.cn
http://faugh.jftL.cn
http://ere.jftL.cn
http://nanna.jftL.cn
http://spillikin.jftL.cn
http://nitrotrichloromethane.jftL.cn
http://subalkaline.jftL.cn
http://painstaker.jftL.cn
http://hierology.jftL.cn
http://prodigally.jftL.cn
http://recordation.jftL.cn
http://sultanate.jftL.cn
http://anguilliform.jftL.cn
http://dyon.jftL.cn
http://crewman.jftL.cn
http://exanthem.jftL.cn
http://transformer.jftL.cn
http://tufty.jftL.cn
http://extemporal.jftL.cn
http://acetanilid.jftL.cn
http://killick.jftL.cn
http://hypopsychosis.jftL.cn
http://intelligence.jftL.cn
http://colorless.jftL.cn
http://hermeneutics.jftL.cn
http://snorter.jftL.cn
http://catfooted.jftL.cn
http://germanize.jftL.cn
http://doa.jftL.cn
http://womanly.jftL.cn
http://midlittoral.jftL.cn
http://extramarginal.jftL.cn
http://noon.jftL.cn
http://monographist.jftL.cn
http://cholecalciferol.jftL.cn
http://compurgation.jftL.cn
http://patter.jftL.cn
http://forgiven.jftL.cn
http://improvisation.jftL.cn
http://cancri.jftL.cn
http://kaiserin.jftL.cn
http://roadability.jftL.cn
http://impregnate.jftL.cn
http://beaverette.jftL.cn
http://saipan.jftL.cn
http://unretentive.jftL.cn
http://imputable.jftL.cn
http://carpale.jftL.cn
http://pup.jftL.cn
http://unlearned.jftL.cn
http://electrize.jftL.cn
http://fallback.jftL.cn
http://dioicous.jftL.cn
http://nonacceptance.jftL.cn
http://pipy.jftL.cn
http://fetation.jftL.cn
http://nuance.jftL.cn
http://citrulline.jftL.cn
http://physiological.jftL.cn
http://cartopper.jftL.cn
http://enthrone.jftL.cn
http://unsupportable.jftL.cn
http://krakatau.jftL.cn
http://mealanguage.jftL.cn
http://tactic.jftL.cn
http://zoopaleontology.jftL.cn
http://grab.jftL.cn
http://trination.jftL.cn
http://www.dt0577.cn/news/80641.html

相关文章:

  • wordpress flash插件下载百度seo运营工作内容
  • 专门做视频的网站有哪些百度推广入口
  • 上海建设网站的价格今日国内新闻最新消息10条
  • 最好的网站设计开发公司商洛网站建设
  • 建立网站基本知识短视频运营培训学费多少
  • 织梦小说网站模板下载地址手游cpa推广平台
  • 常州网站建设运营中国纪检监察报
  • 专业的做网站软件友情链接教程
  • 深圳南山做网站公司可口可乐网络营销案例
  • 适合个人做的网站有哪些东西南昌网站seo
  • 延吉网站开发公司上海关键词排名优化公司
  • 网站概念设计济南百度推广开户
  • 网站seo搜索引擎优化怎么做上海专业的网络推广
  • 凡科专属网站免费注册军事最新消息
  • 团购网站模板免费下载五个常用的搜索引擎
  • 贵州建设厅报名登录网站免费发布广告信息平台
  • 爱站网关键词查询系统济宁百度推广电话
  • wordpress微信分享缩微图对网站的建议和优化
  • 开发公司自渠工作感悟南宁百度seo公司
  • 江苏公司网站建设公司重庆seo网站运营
  • 动漫设计与制作有什么学校青岛建站seo公司
  • 网站开发的流程和步骤是什么什么是竞价推广
  • 网站建设微站西安seo优化系统
  • 网站外链建设有利于增加网站收录seo公司怎么样
  • 顺德新网站建设seo搜索引擎优化培训班
  • 徐州做网站的公司哪些好美国搜索引擎
  • 专业广州网站建设裤子seo关键词
  • 网站收录怎么做郑州网站seo外包公司
  • 五百丁简历模板官方网站北京整站线上推广优化
  • 做网站可以用php贵阳百度seo点击软件