MichealDeath
MichealDeath
For now, you can easily use [node-steam-user](https://github.com/DoctorMcKay/node-steam-user) to get the ticket without running a real steam client. e.g. ```javascript const SteamUser = require('steam-user'); let client = new SteamUser(); client.logOn({ "accountName":...
Through a couple of days searching in Google, i have found a method that can generate the auth ticket without running the game then grab the packet to expose the...
@rover5056 Sure, i use [greenworks](https://github.com/greenheartgames/greenworks), a nodejs wrapper for steamworks. First, download the [source code](https://github.com/greenheartgames/greenworks/releases) and steamworks SDK. Second, follow the [instructions](https://github.com/greenheartgames/greenworks/blob/master/docs/build-instructions-nodejs.md) to build. Finally, open your steam client and...
@miuqiang 你这个“搜索的时候发现重新回来后不好使”的描述也太模糊了吧,我猜你是用的vue吧?我假设你的情况是有一个使用了scrollload的列表页,带着一个搜索框,你从搜索框里输入关键字进行搜索,然后跳转到了一个搜索结果页,再从搜索结果页返回列表页。那么你说的“不好使”指的是什么?scrollload没有记住原先的状态(加载了多少页,滚动到了哪里等等)?还是scrollload的功能不能用(下拉,上拉不好使,代码报错等等)?至少问题要描述清楚吧。。虽然我觉得你这个“不好使”的原因多半是使用vue的方法不对。。
@miuqiang 你没有搜索到数据的时候要调用noMoreData这个方法,然后return,不要调用unLock这个方法了。。要不然当然会无限加载了。
@miuqiang 你这代码看得头疼。。前面不是说过了么,你应该在查询不到数据的时候调用noMoreData这个方法,或者至少你要调用Lock这个方法吧? ```javascript if (data.counts === 0) { //do something sl.noMoreData() //or sl.Lock() return } else { //do something sl.unLock() } ```
@miuqiang 。。。大哥,我觉得这已经偏离主题有点远了吧,github的issues可不是用来教人写代码的地方啊。 首先,你在实例化Scrollload的时候应该将这个实例赋值给一个变量。 ```javascript var scrollload = new Scrollload({...}) ``` 然后,你在绑定搜索触发的事件里,调用异步获取数据的方法时应该把这个实例化的Scrollload当做参数传进去。 ```javascript $('#JS_search').bind('input propertychange', function () { //...do something get_forum_news(scrollload) }) ```