Apache 虚拟主机配置
Apache 虚拟主机配置
httpd.vhosts.conf文件配置
虚拟主机配置
<VirtualHost *:80>
# This first-listed virtual host is also the default for *:80
ServerName localhost
DocumentRoot "G:\wamp\www"
</VirtualHost>
>* 虚拟主机配置
虚拟主机配置
<VirtualHost *:80>
# This first-listed virtual host is also the default for *:80
ServerName localhost
DocumentRoot "G:\wamp\www"
</VirtualHost>
>* 虚拟主机配置
- 使用微信小程序原生组件swiper实现。
<swiper
indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{imgUrls}}" wx:key="index">
<swiper-item>
<image src="{{item}}" class="slide-image"
mode="scaleToFill"/>
</swiper-item>
</block>
</swiper>
配合在逻辑页面配置数据实现幻灯片
function f(s, e) {
var ret = [];
for (var i in s) {
ret.push(e(s[i]));
}
return ret;
}
var a = [-1, -1, 1, -3, -3, -3, 2, 2, -2, -2, 3, -1, -1];
var b = f(a, function(n) {
return n > -0 ? n : 0;
});
console.log(b);
[0, 0, 1, 0, 0, 0, 2, 2, 0, 0, 3, 0, 0]
-webkit-overflow-scrolling 属性控制元素在移动设备上是否使用滚动回弹效果.
在样式表对应的class里添加属性
-webkit-overflow-scrolling: auto;
使用普通滚动, 当手指从触摸屏上移开,滚动会立即停止。
-webkit-overflow-scrolling: touch;
使用具有回弹效果的滚动, 当手指从触摸屏上移开,内容会继续保持一段时间的滚动效果。继续滚动的速度和持续的时间和滚动手势的强烈程度成正比。同时也会创建一个新的堆栈上下文。
后缀名 | MIME名称 |
---|---|
*.3gpp | audio/3gpp, video/3gpp |
*.ac3 | audio/ac3 |
*.asf | allpication/vnd.ms-asf |