uni-app无法运行到微信开发者工具
需要配置微信开发者工具,打开服务端口
微信小程序==》设置==》安全==》 开启接口
如果还不行
就去manifest.json文件去掉微信小程序appid
hbuilderx管理git项目
Hbuilderx安装easy-git,右键项目点击easy-git
创建分支
create branch
切换分支
checkout
三层渐变色
角度
如果希望对渐变角度做更多的控制,可以定义一个角度,来取代预定义的方向(向下、向上、向右、向左、向右下等等)。这个角度指定水平线和渐变线之间的角度。
值 0deg 等于向上(to top)。值 90deg 等于向右(to right)。值 180deg 等于向下(to bottom)。
使用百分比
/* 从下到上,从蓝色开始渐变、到高度40%位置是绿色渐变开始、最后以红色结束 */
linear-gradient(0deg, blue, green 40%, red);
小程序bug:ReferenceError: regeneratorRuntime is not defined
详情==》本地设置==》es6转es5去掉勾选
u-search搜索 改变样式
.search {
margin-top: 32rpx;
margin-bottom: 20rpx;
// 设置圆角2rpx
/deep/ .u-content {
border-radius: 2rpx 2rpx 2rpx 2rpx!important;
}
}
<view class="search">
<u-search class="u-content" placeholder="搜索资源" v-model="keyword" :show-action="false" @search="hanleSearch" shape="square"></u-search>
</view>