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

门户网站建设seo技术外包

门户网站建设,seo技术外包,mt4网站建设,做网站怎么推广百度 amis 当成 UI 库用 1.获取到这些 amis 对外提供的方法 var amisLib amisRequire(amis);// 获取到这些 amis 对外提供的方法。 2.js中使用百度amis中 confirm amisLib.confirm(amisLib 是否确认).then((confirmed) > {if (confirmed) {// 用户确认后执行的操作consol…

                        百度 amis 当成 UI 库用

1.获取到这些 amis 对外提供的方法

  var  amisLib = amisRequire('amis');// 获取到这些 amis 对外提供的方法。

2.js中使用百度amis中 confirm

amisLib.confirm('amisLib 是否确认').then((confirmed) => {if (confirmed) {// 用户确认后执行的操作console.log('用户确认了');alert('用户确认了');} else {alert('用户取消了');// 用户取消了console.log('用户取消了');}});

3.百度amis中 alert

amisLib.toast.success('操作成功!');
amisLib.toast.error('发生错误!');
amisLib.toast.info('提示信息!');
4.弹出警告提示:
amisLib.alert('警告:发生问题!');
5弹出输入框:
amisLib.prompt('请输入:', "默认值").then((promptData) => {if (promptData) {alert(promptData.text);console.log(promptData.text);} else {alert('无数据');}
});

6. 百度amis中刷新页面实现自动弹窗

使用自定义组件custom

					{name: 'nav3d',id: "nav3d",type: 'custom',inline:false, //默认使用 div 标签,如果 true 就使用 span 标签onMount: (dom, value, onChange,props) => {props.onAction(event,{type: 'action',label: '弹个框',actionType: 'dialog',//dialog  toastdialog: {title: '提示: ',body: 'ros节点创建失败!'}},{} // 这是 data);return;}}

7.js中使用amis中的json生成页面

    const schema = {type: 'page',title: 'Layout Example',body: [{type: 'tabs',tabs: [{title: 'Tab 1',body: 'This is the content of Tab 1.',},{title: 'Tab 2',body: 'This is the content of Tab 2.',},],},],};react_dom.render( amisLib.render(schema), document.getElementById('content'));

8.js中使用amis中的json生成页面, 删除第二个 Tab(索引为 1)

    const schema = {type: 'page',title: 'Layout Example',body: [{type: 'tabs',tabs: [{title: 'Tab 1',body: 'This is the content of Tab 1.',},{title: 'Tab 2',body: 'This is the content of Tab 2.',},],},],};   schema.body[0].tabs.splice(1, 1); // 删除第二个 Tab(索引为 1)react_dom.render(amisLib.render(schema), document.getElementById('content'));

草稿:

    const schema1 = {"type": "page","body": [{"type": "button","label": "尝试点击、鼠标移入/移出","level": "primary","onEvent": {"init": {"actions": [{"actionType": "toast","args": {"msgType": "info","msg": "init"}}]},"inited": {"actions": [{"actionType": "toast","args": {"msgType": "info","msg": "${event.data.responseData|json}"}}]},"init": {"actions": [{"actionType": "dialog","dialog": {"title": '提示',"body": '这是一个弹框示例133333'}}]},"click": {"actions": [{"actionType": "dialog","dialog": {"title": '提示',"body": '这是一个弹框示例11111'}}]},"mouseenter": {"actions": [{"actionType": "dialog","dialog": {"title": '提示',"body": '这是一个弹框示例222'}}]},"mouseleave": {"actions": [{"actionType": "dialog","dialog": {"title": '提示',"body": '这是一个弹框示例1333'}}]}}}]};react_dom.render( amisLib.render(schema1), document.getElementById('content'));

http://www.zhongyajixie.com/news/20291.html

相关文章:

  • 洛阳网站公司哪家好海南百度推广公司
  • 常州企业网站建设百度网站优化工具
  • 东莞网站建设分享seo广告网页
  • 泰安企业建站公司互联网产品营销策划方案
  • 通过付费网站做lead打开百度
  • wordpress激活主题百度快照优化的优势是什么
  • 分类信息系统网站模板seo人员是什么意思
  • 搭建网站赚钱吗输入关键词自动生成标题
  • 网站建设图片手机百度开户联系方式
  • 泉州网站建设定制搜索词排行榜
  • 软件定制研发优化步骤
  • 太原网站备案现场核验百度百科词条
  • 哪家网站seo排名快速上升
  • 网站 标题 字体seo网站推广
  • 国内的电商平台百度seo关键词报价
  • 查看别人wordpress主题百度seo推广价格
  • 企业建设门户网站的需求马鞍山网站seo
  • 网站的黏度杭州搜索引擎优化公司
  • 太原谁家网站做的好十大营销策划公司排名
  • 网站内页怎样做优化怎么自己建网站
  • 怎么通过做网站赚钱苏州百度推广
  • 高密营销型网站建设创建个人网站的流程
  • 北京装修公司加盟广东seo推广费用
  • 株洲 网站建设 公司如何制作网址
  • 南充网站建设nc.lueao.com百度关键词搜索怎么做
  • 绥化市建设工程网站招投标网站优化怎么做
  • 临沂做网站找哪家好哈尔滨seo优化公司
  • 济南做网站互联网公司有哪些国内seo排名分析主要针对百度
  • 用html做一号店网站怎么做做seo的公司
  • 公司网站设计是不是一次性收费的培训机构好还是学校好