V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ccccccc  ›  全部回复第 4 页 / 共 6 页
回复总数  118
1  2  3  4  5  6  
2017-07-07 09:09:52 +08:00
回复了 cctrv 创建的主题 设计 我建立了一個新的 tg 群,叫「(← ← )圍觀!設計師現場」
cc 手动滑稽
2017-05-10 08:22:29 +08:00
回复了 nonesuccess 创建的主题 程序员 有所谓的 UI+UE+前端的外包团队吗,应该去哪里找
2017-03-10 08:37:55 +08:00
回复了 olaola 创建的主题 Apple 新手, 黑苹果装机总结
http://mirror.am0200.com/#14

这个简单多,性价比更高
使用 promise.all 另外官方已经推荐 axios
2016-12-21 10:53:09 +08:00
回复了 ccccccc 创建的主题 全球工单系统 钉钉:在 3D touch 菜单文字长度上,在座的各位都是...
@lings 刚好这边有用 钉钉,在这里也相当于反馈给你们技术,当然主题说明相关都是开玩笑说的
记得更新公众号内容啊
https://www.v2ex.com/t/218539#reply65

事实上 iOS 也有这样的
2015-10-10 17:52:30 +08:00
回复了 ccccccc 创建的主题 问与答 发送 0000 到 95561 后, 兴业银行验证码接收不到
@Tink 换手机号码是可以的, 但麻烦是什么都要重新绑定一次新手机号了
2015-10-08 16:06:05 +08:00
回复了 bubblebubble 创建的主题 求职 自学 Android 写了 2 个 app,怎样才能找到工作?
兴趣很重要, 所以楼主加油
2015-09-16 11:24:53 +08:00
回复了 kisnows 创建的主题 问与答 写了一个简单的 fullpage 框架,希望大家提提意见
@kisnows 是的,手离开触摸板事件还在触发,这个就是 '缓冲' 的过程
2015-09-16 10:54:48 +08:00
回复了 kisnows 创建的主题 问与答 写了一个简单的 fullpage 框架,希望大家提提意见
@kisnows 就是轻轻滑动一下触摸板,然后页面会滚动几个页面
2015-09-16 09:47:12 +08:00
回复了 kisnows 创建的主题 问与答 写了一个简单的 fullpage 框架,希望大家提提意见
@kisnows 在 mac 上触摸板上多次滚动还是有问题, 下面代码是另一个 fullpage 插件的做法

// https://github.com/alvarotrigo/fullPage.js
// Gets the average of the last `number` elements of the given array.
function getAverage (elements, number ) {
var sum = 0;

//taking `number` elements from the end to make the average, if there are not enought, 1
var lastElements = elements.slice (Math.max (elements.length - number, 1 ));

for (var i = 0; i < lastElements.length; i++) {
sum = sum + lastElements[i]
}

return Math.ceil (sum/number );
}

var prevtime = new Date ().getTime ();
$(document ).on ('mousewheel wheel DOMMouseScroll', function (e ) {
e.preventDefault ()

var curtime = new Date ().getTime ();

var value = e.wheelDelta || -e.deltaY || -e.detail;
var delta = Math.max (-1, Math.min (1, value ));

//Limiting the array to 150 (lets not waste memory!)
if (scrollings.length > 149 ) {
scrollings.shift ()
}

//keeping record of the previous scrollings
scrollings.push (Math.abs (value ))

//time difference between the last scroll and the current one
var timeDiff = curtime-prevtime;
prevtime = curtime;

//haven't they scrolled in a while?
//(enough to be consider a different scrolling action to scroll another section )
if (timeDiff > 200 ) {
//emptying the array, we dont care about old scrollings for our averages
scrollings = [];
}

if (canScroll ) {
var averageEnd = getAverage (scrollings, 10 );
var averageMiddle = getAverage (scrollings, 70 );
var isAccelerating = averageEnd >= averageMiddle;

//to avoid double swipes...
if (isAccelerating ) {
//scrolling down?
if (delta < 0 ) {
hash ('down')

//scrolling up?
} else {
hash ('up')
}
}
}
})
2015-09-15 11:30:57 +08:00
回复了 kisnows 创建的主题 问与答 写了一个简单的 fullpage 框架,希望大家提提意见
在 mac 上 window.onscroll = function (e ) {console.log (e )}

然后轻轻滑动触摸板, console 输出下面

VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
VM127:2 Event {}
2015-09-15 10:37:52 +08:00
回复了 kisnows 创建的主题 问与答 写了一个简单的 fullpage 框架,希望大家提提意见
@kisnows 你现在这样的做法还是没办法阻止 mac 上多次滚动问题, 当你完成一个滚动动作时候, 事实上那个触摸板的滚动事件还在触发, 所以才有多次滚动问题.
2015-09-15 09:19:09 +08:00
回复了 kisnows 创建的主题 问与答 写了一个简单的 fullpage 框架,希望大家提提意见
@kisnows mac 触摸板会有一个 '缓冲' 的行为, 具体表现是很多次触发滚动. 这个不是简单加条件限制可以组织的, 你可以参考一下另一个 fullPage 插件的做法.
2015-09-07 15:17:09 +08:00
回复了 ccccccc 创建的主题 分享发现 现在手机耗电很大原因是这些 app 的做法
@roygcbp 手机电脑可以互访的话, 是可以的
2015-09-07 14:13:44 +08:00
回复了 ccccccc 创建的主题 分享发现 现在手机耗电很大原因是这些 app 的做法
@roygcbp 127.0.0.1 就是本机, 不关局域网什么的, 也不用拿手机 ip
1  2  3  4  5  6  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   997 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 22:52 · PVG 06:52 · LAX 14:52 · JFK 17:52
♥ Do have faith in what you're doing.