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

张云网站建设产品软文是什么意思

张云网站建设,产品软文是什么意思,WordPress多站点开启多语言,关键字有哪些微信小程序开发#xff08;五#xff09;小程序代码组成2 为了进一步加深我们对小程序基础知识的了解和掌握#xff0c;需要更进一步的了解小程序的代码组成以及一些简单的代码的编写。 参考小程序官方的的代码组成文档#xff1a;https://developers.weixin.qq.com/ebook?…微信小程序开发五小程序代码组成2 为了进一步加深我们对小程序基础知识的了解和掌握需要更进一步的了解小程序的代码组成以及一些简单的代码的编写。 参考小程序官方的的代码组成文档https://developers.weixin.qq.com/ebook?actionget_post_infodocid000ace6c9603786b008636f2e56c0a 1. JSON 配置 JSON 是一种数据格式并不是一门语言。使用JSON可以方便到的对小程序进行项目配置。 在 ·app.json· 文件中的pages 项下添加一行 pages/wsml/index项目左侧的文件区就会自动生成wxml 文件里面包含index.jsindex.jsonindex,wxmlindex.wxss 文件。wxml 文件对应在小程序上就是一个页面文件我们可以在此页面文件中添加代码在小程序的页面中就会显示出来。 2. WXML 模板 例一个简单的文本标签text 标签 texthello/text textworld/text 例view 中包含了 text 标签 viewtexthello world/text /view例图片标签 image classuserinfo-avatar src../../image/avatar.png stylewidth: 40px; height: 40px; modeaspectFit/image 注意这里的文件路径不要写错否则找不到资源图片也将不会正常显示。 例数据绑定 index.wxml text当前时间{{time}}/text index.json // pages/wxml/index.js Page({/*** 页面的初始数据*/data: {time: (new Date()).toString(),length: 6,array: [0, 1, 2],array1: [{message: go home,}, {message: have a dinner}],objectArray: [{id: 5, unique: unique_5},{id: 4, unique: unique_4},{id: 3, unique: unique_3},{id: 2, unique: unique_2},{id: 1, unique: unique_1},{id: 0, unique: unique_0},],numberArray: [1, 2, 3, 4],item: {index: 0,msg: this is a template,time: 2016-06-18},},switch: function(e) {const length this.data.objectArray.lengthfor (let i 0; i length; i) {const x Math.floor(Math.random() * length)const y Math.floor(Math.random() * length)const temp this.data.objectArray[x]this.data.objectArray[x] this.data.objectArray[y]this.data.objectArray[y] temp}this.setData({objectArray: this.data.objectArray})},addToFront: function(e) {const length this.data.objectArray.lengththis.data.objectArray [{id: length, unique: unique_ length}].concat(this.data.objectArray)this.setData({objectArray: this.data.objectArray})},addNumberToFront: function(e){this.data.numberArray [ this.data.numberArray.length 1 ].concat(this.data.numberArray)this.setData({numberArray: this.data.numberArray})},})在 inde.js 的data中添加time的等定义。在wxml中可以获取到time的值这称作数据绑定。 条件语句 view wx:if{{length 5}} 1 /view view wx:elif{{length 2}} 2 /view view wx:else 3 /viewblock标签 block wx:if{{true}}view view1 /viewview view2 /view /block列表渲染 wx:for view wx:for{{array}}{{index}}: {{item}} /view view wx:for{{array1}}{{index}}: {{item.message}} /view --wx:for-item wx:for-index view wx:for{{array1}} wx:for-indexidx wx:for-itemitemName{{idx}}: {{itemName.message}} /view block wx:if wx:for !-- block wx:for{{[张三, 李四, 王五]}}view {{index}}: {{item}}/view /block switch {{item.id}} Switch Add to the front {{item}} Add Number to the front 模板 template viewtext {{item.index}}: {{item.msg}} /texttext Time: {{item.time}} /text /viewtemplate namemsgItemviewtext {{item.index}}: {{item.msg}} /texttext Time: {{item.time}} /text/view /template3. WXSS 样式 3.1 WMSS简介 3.2 尺寸单位rpx 3.3 WXSS引用 import ./test_0.wxss 3.4 官方样式库 https://github.com/Tencent/weui-wxss JavaScript 小程序主要使用js脚本语言。我已了解没了解的可自行了解和学习。
http://www.dnsts.com.cn/news/89215.html

相关文章:

  • 站长交易网个人承包工程合同范本
  • 网站未备案免费网站建站+凡科建站
  • 怎么和网站主联系方式温州市建设小学网站首页
  • 深圳市做网站建设wordpress pshow
  • 无锡高端网站建设咨询网站开发现在怎么样
  • 网站套站什么意思asp网站开发教程pdf
  • 筑巢网站建设快看影视大全官方下载
  • 免费个人网站建设制作代码电商wordpress
  • 济南市章丘区建设局网站深圳禅城网站设计
  • 莱芜二中网站请大学生做网站
  • 静态网站站内搜索关键词排名点击软件
  • 福永网站建设公司哪家好基于构件的软件开发流程
  • 网站一体化建设长沙优化排名推广
  • 免费传奇游戏在线玩北京关键词优化平台
  • 装修网站免费设计网络营销推广的渠道有哪些
  • 网站怎么做电脑系统下载广东省城乡建设厅网站首页
  • 网站续费 多久武冈市住房和城乡建设局网站
  • 上海专业网站建设价晋城做网站的公司
  • 商城微网站建设多少钱北京seo网站优化培训
  • 哪些因素营销网站权重网站建设用户登录源码
  • 一个专门做特卖的网站搭建商城网站
  • 免费做漫画网站网站总是跳转dede58
  • 建设网站的申请百度用户服务中心官网电话
  • 深圳做三网合一网站wordpress 分页目录
  • 如何优化网站到首页优化百度门户网站
  • 网站欢迎页面模板下载wordpress 问答主题
  • 乐山旅游 英文网站建设济南网站建设方案详细
  • 营销型网站的设计框架专业自助建站
  • 公司建站多少钱增加网站产品
  • 怎么把文件发送到网站企业网站如何进行seo