2bt's recent timeline updates
2bt's repos on GitHub
JavaScript · 57 watchers
ssr2json
tool for decoding ssr to json / qrcode
JavaScript · 52 watchers
audioVisualizer
audio visualizer with canvas & html5 audio api for Hello by OMFG
JavaScript · 23 watchers
cubeTransition.js
a jquery plugin for page transition effect
JavaScript · 6 watchers
ssr2jsonBat
批量处理ssr/ss到json
JavaScript · 5 watchers
typer.js
a lightweight javascript lib for typing effect
JavaScript · 4 watchers
jumping-box
a simple html5 game with canvas
JavaScript · 2 watchers
starwars-loading-style-for-pace
a star wars style loading bar for pace.js
JavaScript · 2 watchers
tinyLog
a blog template based on Github issues comment
JavaScript · 2 watchers
tradeBot
虚拟货币对倒交易用的前端工具(庄家必备)
HTML · 1 watchers
interview
整理的前端面试题
JavaScript · 1 watchers
moment
a blog template based on Github issues
JavaScript · 1 watchers
xTrans
the simplest way to transfer message (maybe files) between PCs and Mobiles
HTML · 0 watchers
about
all my repos on github in one page
JavaScript · 0 watchers
chain.js
asyn/syn function executed in order
JavaScript · 0 watchers
dict
a chrome extension for looking up english word easily
JavaScript · 0 watchers
fineReader
a chrome extension for reading
JavaScript · 0 watchers
flav0r
an electron launcher for Windows
JavaScript · 0 watchers
gulp-test
an example project for gulp.js
JavaScript · 0 watchers
hover.js
360 degree direction aware animation for any elements
HTML · 0 watchers
HTML50.github.io
my blog source
JavaScript · 0 watchers
issues-comment
a comment system based on github issues
JavaScript · 0 watchers
javascript-koans
Koans to learn Javascript
JavaScript · 0 watchers
listen2me
an article&music player, feel the writing mood of author
JavaScript · 0 watchers
M
a markdown editor with Matrix style
JavaScript · 0 watchers
petal
a blog framework based on Github's Issues
HTML · 0 watchers
ping.js
create a component for showing network speed status to any site
CSS · 0 watchers
resume
my resume page source
JavaScript · 0 watchers
simple-nodejs-http-server
a simple http server for node.js.
HTML · 0 watchers
stockDiary
a small tool for keeping diary of stock
HTML · 0 watchers
study-notes
我的学习总结与记录
0 watchers
test
test
JavaScript · 0 watchers
todoList
react todoList
JavaScript · 0 watchers
vader-loader
a star wars style js process bar
HTML · 0 watchers
vue-todolist
another todolist in vue.js
JavaScript · 0 watchers
yesNo
A REWRITE OF YESNO.WTF IN VUEJS
2bt

2bt

凡事豫则立,不豫则废
V2EX member #231353, joined on 2017-05-18 23:01:06 +08:00
2bt's recent replies
@SEARCHINGFREE
@SakuraKuma

大神,在上面这个基础上我又做了个测试,如果 body 高 1000px,且其中有内容的话,比如有十个<p>a</p>。
在 history.scrollRestoration ='auto'的情况下,script 为 window.scrollTo(0, 3000)。
假如滚动条是在最顶端,那么刷新时是完全没反应的。
但是如果滚动条不在顶端,刷新的时候,滚动条都会自动往下面滚动一丁点,且刷新多次,会锁定在一个地方,这个距离和浏览器视图大小有关系,也和内容多少有关系。


PS:要在本地预览,jsfiddle 上面执行都正常。
完整代码:
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body{height: 1000px}
</style>
</head>

<body>
<div>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a</p>
</div>

<script>
window.scrollTo(0, 100);
console.log(document.body.scrollTop);
</script>
</body>
</html>
又测了一下,无效。(尴尬
linux + chrome 61 测试有效
@kenshinji 是的。api 貌似收费的,我直接访问 URL 查词的。
我想问一下,查询频率高了,不会封 IP 吗。
我之前写过一个扩展,查几个词就 forbidden 了
。。。
Jun 20, 2017
Replied to a topic by tuteng 程序员 无耻的骗 star 了
我能不能也来骗一点,html5 跳跃游戏。
https://html50.github.io/jumping-box/
@xtutux 我是例外,跨行业找前端工作
怪不得怎么投都没面试的机会
Jun 19, 2017
Replied to a topic by nameundefined 求职 薪资无所谓,求前端机会
@parkcg 求兼职,我做过的小东西 https://html50.github.io/about/
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3045 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 06:12 · PVG 14:12 · LAX 23:12 · JFK 02:12
♥ Do have faith in what you're doing.