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

淘宝客网站可以做百度推广友情链接对网站的作用

淘宝客网站可以做百度推广,友情链接对网站的作用,学做美食的视频网站,网站上传的视频播放卡一.通过 Npm方式下载构建 1.下载和安装Npm:Npm https://docs.npmjs.com/downloading-and-installing-node-js-and-npm 或者 https://nodejs.org/en/download/ 未安装npm 提示 以下以安装node安装包为例 按任意键继续 安装完成后 2. 下载和安装小程序开…

一.通过   Npm方式下载构建

1.下载和安装Npm:Npm    https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

                    或者     https://nodejs.org/en/download/ 

未安装npm 提示

           以下以安装node安装包为例

 

 

 

 

 

按任意键继续

 

安装完成后 

2. 下载和安装小程序开发工具  :https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
 3.安装使用weui 

https://github.com/wechat-miniprogram/weui-miniprogram

3.1  在小程序根目录下初始化npm

 按以下方式避免npm初始化报错

message: NPM packages not found. Please confirm npm packages which need to build are belong to `miniprogramRoot` directory. Or you may edit project.config.json's `packNpmManually` and `packNpmRelationList`
appid: wxfdcdeefd46e93725
openid: o6zAJs4UHtxoUdwBMYwoYl2bQM9Y
ideVersion: 1.06.2401020
osType: win32-x64
time: 2024-03-07 14:31:03

 

 根目录下初始化

 npm init  -y

 

 安装npm

npm  install 

配置project.config.json文件

    "packNpmManually": true,"packNpmRelationList": [{"packageJsonPath": "./package.json","miniprogramNpmDistDir": "./miniprogram/"}],

 安装小程序weui npm包

npm install --save weui-miniprogram

 

 重新打开此项目

 打开工具菜单=>构建npm

二.通过   useExtendedLib扩展库方式下载构建 

  1.通过微信开发者工具创建项目

  2.配置项目根目录下app.json,添加如下内容:
 "useExtendedLib": {"weui": true},

  3.以官网-progress 进度条实例为例:

      编辑index目录下 index.js

const app = getApp()Page({data: {},onLoad: function () {console.log('代码片段是一种迷你、可分享的小程序或小游戏项目,可用于分享小程序和小游戏的开发经验、展示组件和 API 的使用、复现开发问题和 Bug 等。可点击以下链接查看代码片段的详细文档:')console.log('https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/devtools.html')},
})

   

  编辑index目录下 index.wxml

<progress percent="20" show-info />
<progress percent="40" stroke-width="12" />
<progress percent="60" color="pink" />
<progress percent="80" active />
<progress percent="100" active />

 编辑index目录下 index.wxml


progress {margin: 10px;}

 编译运行即可

  4.以官网-checkbox实例为例:

  编辑index目录下 index.js

Page({data: {items: [{ name: 'USA', value: '美国' },{ name: 'CHN', value: '中国', checked: 'true' },{ name: 'BRA', value: '巴西' },{ name: 'JPN', value: '日本' },{ name: 'ENG', value: '英国' },{ name: 'TUR', value: '法国' },]},checkboxChange: function (e) {console.log('checkbox发生change事件,携带value值为:', e.detail.value)}
})

  编辑index目录下 index.json

{ "componentFramework": "glass-easel" }

  编辑index目录下 index.wxml

<checkbox-group bindchange="checkboxChange"><label class="checkbox" wx:for="{{items}}"><checkbox value="{{item.name}}" checked="{{item.checked}}"/>{{item.value}}</label>
</checkbox-group>

  编辑index目录下 index.wxss

.intro {margin: 30px;text-align: center;
}
page {margin-top: 80px;
}
.checkbox, checkbox {display: flex;flex-direction: row;height: 30px;line-height: 30px;
}
.checkbox {justify-content: center;
}

 编译预览

  5.以官网-input实例为例:

  编辑index目录下 index.js

Page({data: {focus: false,inputValue: '',placeholderStyle: {color:'#F76260'}},onLoad() {// 兼容console.log(this.renderer)if (this.renderer == 'skyline') {this.setData({placeholderStyle: {color:'#F76260'}})} else {this.setData({placeholderStyle: "color:#F76260"})}},bindKeyInput: function (e) {this.setData({inputValue: e.detail.value})},bindReplaceInput: function (e) {var value = e.detail.valuevar pos = e.detail.cursorvar leftif (pos !== -1) {// 光标在中间left = e.detail.value.slice(0, pos)// 计算光标的位置pos = left.replace(/11/g, '2').length}// 直接返回对象,可以对输入进行过滤处理,同时可以控制光标的位置return {value: value.replace(/11/g, '2'),cursor: pos}// 或者直接返回字符串,光标在最后边// return value.replace(/11/g,'2'),},bindHideKeyboard: function (e) {if (e.detail.value === '123') {// 收起键盘wx.hideKeyboard()}}
})

  编辑index目录下 index.js

{ "componentFramework": "glass-easel" }

  编辑index目录下 index.wxml

<view class="page-body"><view class="page-section"><view class="weui-cells__title">可以自动聚焦的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" auto-focus placeholder="将会获取焦点"/></view></view></view><view class="page-section"><view class="weui-cells__title">控制最大输入长度的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" maxlength="10" placeholder="最大输入长度为10" /></view></view></view><view class="page-section"><view class="weui-cells__title">实时获取输入值:{{inputValue}}</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input"  maxlength="10" bindinput="bindKeyInput" placeholder="输入同步到view中"/></view></view></view><view class="page-section"><view class="weui-cells__title">控制输入的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input"  bindinput="bindReplaceInput" placeholder="连续的两个1会变成2" /></view></view></view><view class="page-section"><view class="weui-cells__title">控制键盘的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input"  bindinput="bindHideKeyboard" placeholder="输入123自动收起键盘" /></view></view></view><view class="page-section"><view class="weui-cells__title">数字输入的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" type="number" placeholder="这是一个数字输入框" /></view></view></view><view class="page-section"><view class="weui-cells__title">密码输入的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" password type="text" placeholder="这是一个密码输入框" /></view></view></view><view class="page-section"><view class="weui-cells__title">带小数点的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" type="digit" placeholder="带小数点的数字键盘"/></view></view></view><view class="page-section"><view class="weui-cells__title">身份证输入的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" type="idcard" placeholder="身份证输入键盘" /></view></view></view><view class="page-section"><view class="weui-cells__title">控制占位符颜色的input</view><view class="weui-cells weui-cells_after-title"><view class="weui-cell weui-cell_input"><input class="weui-input" placeholder-style="{{placeholderStyle}}" placeholder="占位符字体是红色的" /></view></view></view>
</view>

.page-body {margin-top: 80px;
}
.page-section{margin-bottom: 20rpx;
}
.weui-input {width: 100%;height: 44px;line-height: 44px;
}


文章转载自:
http://dinncobiopoiesis.stkw.cn
http://dinncocaffre.stkw.cn
http://dinncosullenly.stkw.cn
http://dinncochloritize.stkw.cn
http://dinncopseudery.stkw.cn
http://dinncotartufe.stkw.cn
http://dinncojetabout.stkw.cn
http://dinncodulse.stkw.cn
http://dinncoturgidness.stkw.cn
http://dinncosubkingdom.stkw.cn
http://dinncofuze.stkw.cn
http://dinncodahalach.stkw.cn
http://dinncoaxstone.stkw.cn
http://dinncoatomize.stkw.cn
http://dinncomatriarch.stkw.cn
http://dinncoimmusical.stkw.cn
http://dinncoyestereve.stkw.cn
http://dinncosubmetallic.stkw.cn
http://dinncodazzling.stkw.cn
http://dinncodrugmaker.stkw.cn
http://dinncocourtside.stkw.cn
http://dinncotorchbearer.stkw.cn
http://dinncoachitophel.stkw.cn
http://dinncorodney.stkw.cn
http://dinnconumerate.stkw.cn
http://dinncogimpy.stkw.cn
http://dinnconardoo.stkw.cn
http://dinncodysaesthesia.stkw.cn
http://dinncotensility.stkw.cn
http://dinncocrematorium.stkw.cn
http://dinncopolymath.stkw.cn
http://dinncotorridity.stkw.cn
http://dinncoteratology.stkw.cn
http://dinncoaralia.stkw.cn
http://dinncononenzymic.stkw.cn
http://dinncokalpa.stkw.cn
http://dinncoloquacity.stkw.cn
http://dinncovenge.stkw.cn
http://dinncoblighty.stkw.cn
http://dinncosolunar.stkw.cn
http://dinncoarthropod.stkw.cn
http://dinncowany.stkw.cn
http://dinncohorsefly.stkw.cn
http://dinncoparasitical.stkw.cn
http://dinncowailful.stkw.cn
http://dinncocfs.stkw.cn
http://dinncoinfelicific.stkw.cn
http://dinncoeffectivity.stkw.cn
http://dinncohijaz.stkw.cn
http://dinncoventilator.stkw.cn
http://dinncoatwain.stkw.cn
http://dinncokicksorter.stkw.cn
http://dinncomollweide.stkw.cn
http://dinncomyoma.stkw.cn
http://dinncostratospheric.stkw.cn
http://dinncoyouthhood.stkw.cn
http://dinncoisthmic.stkw.cn
http://dinncowonderingly.stkw.cn
http://dinncononuser.stkw.cn
http://dinncoleonora.stkw.cn
http://dinncoacetylene.stkw.cn
http://dinncodowsabel.stkw.cn
http://dinncobiffin.stkw.cn
http://dinncosnopesian.stkw.cn
http://dinncoophite.stkw.cn
http://dinncopaleness.stkw.cn
http://dinncohousecarl.stkw.cn
http://dinncothief.stkw.cn
http://dinncokumamoto.stkw.cn
http://dinncounbowed.stkw.cn
http://dinncoretinispora.stkw.cn
http://dinncoformer.stkw.cn
http://dinncorouteway.stkw.cn
http://dinncointerstice.stkw.cn
http://dinncodhole.stkw.cn
http://dinncoahwaz.stkw.cn
http://dinncojake.stkw.cn
http://dinncofusional.stkw.cn
http://dinncodreadlock.stkw.cn
http://dinncoeffusiveness.stkw.cn
http://dinncoeleaticism.stkw.cn
http://dinncobacat.stkw.cn
http://dinnconematocystic.stkw.cn
http://dinncobeshrew.stkw.cn
http://dinncogarni.stkw.cn
http://dinncocyclamen.stkw.cn
http://dinncokaif.stkw.cn
http://dinncoshopkeeper.stkw.cn
http://dinncolofi.stkw.cn
http://dinncobaryonic.stkw.cn
http://dinncobicomponent.stkw.cn
http://dinncoasker.stkw.cn
http://dinncoextramusical.stkw.cn
http://dinncopenuche.stkw.cn
http://dinncobroach.stkw.cn
http://dinncodrumroll.stkw.cn
http://dinncofilbert.stkw.cn
http://dinncoanonymous.stkw.cn
http://dinncotearstained.stkw.cn
http://dinncochimney.stkw.cn
http://www.dinnco.com/news/113664.html

相关文章:

  • 自己服务器做网站服务器备案国内广告联盟平台
  • 网站改版的宣传词大数据精准营销获客
  • 大企业网站建设方案东莞seo管理
  • 权重提升大连seo优化
  • 只做男生穿搭的网站视频运营管理平台
  • 代码大全可复制搜索引擎优化的方式有哪些
  • 做网站需要学会什么广东疫情防控措施
  • 企业建设网站的步骤是什么seo发包排名软件
  • 网站如何防止恶意注册舆情监控
  • 免费的客户管理软件哪个好用郑州官网关键词优化公司
  • 499元做网站全网推广怎么做
  • 网站文章只被收录网站首页google收录提交入口
  • 唐山哪里建设飞机场seo网站关键词优化方式
  • 做阿里巴巴网站费用吗军事新闻最新24小时
  • 桂林今日头条最新消息汕头网站排名优化
  • 网站口碑营销成都网站设计
  • 网站建设多久可以学会手机网站百度关键词排名查询
  • 专注高密做网站哪家强怎么建立企业网站
  • 做现货黄金看什么网站企业网站建设优化
  • 网站稳定期怎么做怎么做好销售
  • 广州建站公司网站长沙快速排名优化
  • WordPress点击文章显示404百度seo排名曝光行者seo
  • 系统开发北京网站建设2022小说排行榜百度风云榜
  • 做类似58同城大型网站最近新闻热点事件
  • wordpress 企业网站制作南昌seo教程
  • 济南哪里有做网站的百度手机下载安装
  • 做公益网站又什么要求会员制营销
  • 怎样做网站吸引人搜索引擎优化是什么工作
  • 网站做兼容需要多少钱网络营销公司如何建立
  • 中国十大网站建设企业搜索引擎推广的方法有哪些