import React from 'react'; import {getSwipeWay} from '../utils/swipe'; class Carousel extends React.Component { constructor(args){ super(args); this.s... ...
分类:
其他好文 时间:
2017-12-25 13:38:35
阅读次数:
171
appium常用函数介绍: 获取页面信息: 1、 def get_current_activity(cls, driver): ''' 获取当前页面的activity :param driver: :return: ''' return driver.current_activity 2、 def ...
分类:
移动开发 时间:
2017-12-14 19:30:32
阅读次数:
860
swipe介绍 1.查看源码语法,起点和终点四个坐标参数,duration是滑动屏幕持续的时间,时间越短速度越快。默认为None可不填,一般设置500-1000毫秒比较合适。 2.手机从左上角开始为0,横着的是x轴,竖着的是y轴 获取坐标 1.由于每个手机屏幕的分辨率不一样,所以同一个元素在不同手机 ...
分类:
移动开发 时间:
2017-11-07 19:56:53
阅读次数:
387
一、Swiper插件,Swiper官网http://www.swiper.com.cn/,这是针对移动端的 Swiper常用于移动端网站的内容触摸滑动,是纯javascript打造的滑动特效插件,面向手机、平板电脑等移动终端。能实现触屏焦点图、触屏Tab切换、触屏多图切换、轮播等常用效果。Swipe ...
分类:
其他好文 时间:
2017-11-03 16:13:44
阅读次数:
232
npm install vue-awesome-sw iper --save ...
分类:
其他好文 时间:
2017-10-27 01:17:19
阅读次数:
197
<script type="text/javascript"> $(function(){ var swiper = new Swiper('.swiper-container', { pagination: '.swiper-pagination', paginationClickable: tr ...
分类:
其他好文 时间:
2017-10-12 14:34:15
阅读次数:
361
#coding=utf-8import os, time, unittestfrom appium import webdriver PATH = lambda p:os.path.abspath(os.path.join(os.path.dirname(__file__),p)) desired_ ...
分类:
移动开发 时间:
2017-09-25 23:56:03
阅读次数:
261
转自:http://www.jianshu.com/p/bf1ca3d4ac76 写这篇文章的心情 真的很开心,我看着官网介绍竟然对AppiumDesktop略懂皮毛了。今天特意写出来,希望可以帮助一些初入坑的伙伴们。AppiumDesktop真的是一个好东西: 1、首先他可以定为元素信息(这里所说 ...
分类:
移动开发 时间:
2017-09-16 16:13:05
阅读次数:
377
导航一直是App开发中比较重要的一个组件,ReactNative提供了两种导航组件供我们使用,分别是:NavigatorIOS和Navigator,但是前者只能用于iOS平台,后者在ReactNative0.44版本以后已经被移除了。 好在有人提供了更好的导航组件,就是我们今天要讲的react-na ...
分类:
其他好文 时间:
2017-09-13 18:32:57
阅读次数:
394