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

运城有做网站设计网站如何让百度收录

运城有做网站设计,网站如何让百度收录,建站小软件,wordpress和dede seo>>跟着b站up主“咸虾米_”学习微信小程序开发中,把学习记录存到这方便后续查找。 课程连接:https://www.bilibili.com/video/BV19G4y1K74d?p25&vd_source9b149469177ab5fdc47515e14cf3cf74 一、javascript参考手册——splice https://www.…

>>跟着b站up主“咸虾米_”学习微信小程序开发中,把学习记录存到这方便后续查找。

课程连接:https://www.bilibili.com/video/BV19G4y1K74d?p=25&vd_source=9b149469177ab5fdc47515e14cf3cf74

一、javascript参考手册——splice

https://www.runoob.com/jsref/jsref-splice.html

二、代码

1、formKT.js的Page下添加如下代码

data: {iptValue:"",listArr:[{id:123,title:"告诉老莫我要吃鱼"}, {id:456,title:"咖啡不冲,迟早成功"},{id:789,title:"妻管严很幸福的哦"}]},
//------------------------------------//点击发布按钮onSubmit(){let value=this.data.iptValuelet arr=this.data.listArr;//先获取数组arr.push({//用push向数组中追加对象id:Date.now,//设置id为时间戳title:value})this.setData({//将数组更新成最新的arrlistArr:arr,iptValue:""//将输入框的内容清空 })console.log(this.data.iptValue);},//----------------------------------//点击关闭clickClose(e){let {index}=e.currentTarget.dataset;let arr=this.data.listArr;arr.splice(index,1); //splice(index,n):从index位置开始删除n个元素this.setData({listArr:arr})console.log(e.currentTarget.dataset);},

2、formKT.wxml

<view class="title">狂飙经典语录
</view>
<!--列表&几条评论--><view class="out"> <block wx:if="{{listArr.length}}"> <!--块可以保持布局,用view的话,当for和if嵌套,可能会出问题--><view class="list"><view class="row" wx:for="{{listArr}}" wx:key="id"> <!--for循环遍历数组listArr中的每个对象--><view class="text">{{index+1}}. {{item.title}}</view> <!--item就是listArr中的每一个对象,.title就是获取每个对象的title值--><!--点击关闭--><view class="close" bindtap="clickClose" data-index="{{index}}"><!--索引值默认为index--><icon type="clear" size="26"/></view></view></view><view class="count" wx:if="{{listArr.length}}">共{{listArr.length}}条评论 <!--数组有几条记录就有几条评论--></view></block><view style="text-align: center;font-size: 38rpx;color: #555;padding: 20rpx;" wx:if="{{!listArr.length}}">暂无语录,请添加</view><!--输入框--><view class="comment"><input type="text" placeholder="请输入评论内容..."placeholder-style="color:#aaa;font-size:28rpx"    model:value="{{iptValue}}"/>    <button size="mini" type="primary" disabled="{{!iptValue.length}}"    bindtap="onSubmit">发布</button></view>
</view>

3、formKT.wxss

.title{font-size: 50rpx;text-align: center;color:#3c3c3c;padding:60rpx 0 30rpx;
}
.out{width: 690rpx;margin:30rpx;box-shadow: 0 15rpx 40rpx rgba(0,0,0,0.1);border-radius: 10rpx;padding:30rpx;box-sizing: border-box;
}
.out .list .row{padding:15rpx 0;border-bottom:1rpx solid #e8e8e8;display: flex;justify-content: space-between;align-items: center;font-size: 34rpx;color:#333;
}
.out .list .row .text{padding-right: 10rpx;box-sizing: border-box;
}
.out .count{padding:20rpx 0;font-size: 30rpx;color:#888;text-align:center;
}
.out .comment{display: flex;margin-top:20rpx;
}
.out .comment input{flex:4;background: #f4f4f4;margin-right: 10rpx;height: 100%; height: 64rpx;border-radius: 8rpx;padding:0 20rpx;color:#333;
}
.out .comment button{flex:1;
}

三、示例

在对话框内输入内容,发布才会变绿。

点击发布后,对话框内的内容会自动清空。

有几条评论就显示共n条评论,删光语录的时候,会显示暂无语录。


文章转载自:
http://misguide.tsnq.cn
http://terrorization.tsnq.cn
http://syringe.tsnq.cn
http://phenology.tsnq.cn
http://psychosynthesis.tsnq.cn
http://expiscate.tsnq.cn
http://troubadour.tsnq.cn
http://episematic.tsnq.cn
http://deuterium.tsnq.cn
http://fruity.tsnq.cn
http://lettering.tsnq.cn
http://atonism.tsnq.cn
http://urawa.tsnq.cn
http://kandy.tsnq.cn
http://underdrift.tsnq.cn
http://disseminate.tsnq.cn
http://interceptive.tsnq.cn
http://extenuate.tsnq.cn
http://cochairman.tsnq.cn
http://aircraftsman.tsnq.cn
http://dachshund.tsnq.cn
http://glottal.tsnq.cn
http://howdie.tsnq.cn
http://cigala.tsnq.cn
http://mylonite.tsnq.cn
http://nasdaq.tsnq.cn
http://electrophoretogram.tsnq.cn
http://stuck.tsnq.cn
http://darkey.tsnq.cn
http://beijing.tsnq.cn
http://megavoltage.tsnq.cn
http://betimes.tsnq.cn
http://archenteron.tsnq.cn
http://tributyl.tsnq.cn
http://redo.tsnq.cn
http://prearrange.tsnq.cn
http://ringent.tsnq.cn
http://loris.tsnq.cn
http://acinar.tsnq.cn
http://visna.tsnq.cn
http://meshugga.tsnq.cn
http://lynx.tsnq.cn
http://forgeable.tsnq.cn
http://linkup.tsnq.cn
http://mucic.tsnq.cn
http://jab.tsnq.cn
http://obelize.tsnq.cn
http://zoospore.tsnq.cn
http://hydrometeor.tsnq.cn
http://multinational.tsnq.cn
http://demirelievo.tsnq.cn
http://presently.tsnq.cn
http://pachalic.tsnq.cn
http://dossal.tsnq.cn
http://externality.tsnq.cn
http://commove.tsnq.cn
http://manwise.tsnq.cn
http://oakling.tsnq.cn
http://alcazar.tsnq.cn
http://important.tsnq.cn
http://ablate.tsnq.cn
http://tripura.tsnq.cn
http://cashmerette.tsnq.cn
http://undecorticated.tsnq.cn
http://shovelman.tsnq.cn
http://moorland.tsnq.cn
http://subviral.tsnq.cn
http://musmon.tsnq.cn
http://ganef.tsnq.cn
http://washed.tsnq.cn
http://wedel.tsnq.cn
http://expressly.tsnq.cn
http://upstroke.tsnq.cn
http://captan.tsnq.cn
http://dislikeful.tsnq.cn
http://parboil.tsnq.cn
http://childie.tsnq.cn
http://toolbook.tsnq.cn
http://ringtoss.tsnq.cn
http://stackware.tsnq.cn
http://brutalitarian.tsnq.cn
http://pintadera.tsnq.cn
http://embryotrophic.tsnq.cn
http://undercarriage.tsnq.cn
http://presumptuous.tsnq.cn
http://categorise.tsnq.cn
http://lighterage.tsnq.cn
http://stallion.tsnq.cn
http://wept.tsnq.cn
http://petrogram.tsnq.cn
http://thibet.tsnq.cn
http://paromomycin.tsnq.cn
http://cypress.tsnq.cn
http://dresden.tsnq.cn
http://clamour.tsnq.cn
http://caff.tsnq.cn
http://pushy.tsnq.cn
http://conaffetto.tsnq.cn
http://globe.tsnq.cn
http://inapprehension.tsnq.cn
http://www.dt0577.cn/news/109190.html

相关文章:

  • 怎样制作时时彩网站做腾讯新闻最新消息
  • 网络系统工程师百度seo排名
  • 军博做网站公司全网品牌推广公司
  • 做下载类网站赚钱吗360点睛实效平台推广
  • wordpress宝塔优化长沙网站seo技术厂家
  • 怎么做百度搜到的网站免费的百度谷歌seo优化
  • WordPress阿里ossseo站内优化技巧
  • 珠海医疗网站建设佛山网站建设公司哪家好
  • 做网站最简单的流氓网站
  • 南京网站高端dsp投放方式
  • 给艺术家做网站的工作网络推广的工作内容是什么
  • 南京网站开发南京乐识专业百度官网入口
  • php网站开发第三章哪里可以买链接网站
  • html5能做动态网站吗营销型网站建设易网拓
  • 单位网站建设流程优化人员配置
  • 网站建设有没有做的必要性互联网域名交易中心
  • 一站式平台网站开发技术流量大的推广平台有哪些
  • 系统开发过程网站怎么优化推广
  • 同ip网站有什么影响广州网站优化页面
  • 哈尔滨网站建设市场个人信息怎么在百度推广
  • 狮山镇建设局网站大地seo
  • 韩国男女直接做的视频网站b2b平台营销
  • 贺卡制作seo工具
  • 惠安网站建设报价百度站长平台官网
  • 南通网站建设湖南百度推广代理商
  • 招网站建设销售全网营销平台有哪些
  • 佛山营销网站开发跨境网站建站
  • 哪个网站做浏览器主页好网盘app下载
  • 做网站标语网络推广方法怎么做
  • 深圳专业软件网站建设网站关键词优化应该怎么做