Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分享内容及标题如果是动态的话处理很不方便 #57

Open
asins opened this issue Jan 22, 2015 · 0 comments
Open

分享内容及标题如果是动态的话处理很不方便 #57

asins opened this issue Jan 22, 2015 · 0 comments

Comments

@asins
Copy link

asins commented Jan 22, 2015

如题,比如我写个小游戏,分享的方案是由游戏结果而不同,这样的话,如果一开始就传入分享的方案就无法做到动态变化了!有提供支持吗?

我目前的处理是在handler方法中加入

    for(var k in theData){
                if($.isFunction(theData[k]))
                    theData[k] = theData[k]();
            }

这样在外部传入的是个方法,而不是字符就可以完成了,但实现方式并不让人满意。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant