开发者

How do I turn this into an array?

How do I turn this into an array if I want to include steve, john, bobby, and peter?

getBlogs('#all-blogs', blogUrl+ '?u开发者_如何学JAVAser=steve', 5, feedUrl);

-edit- More info

This is how it's set up right now with javascript.

function getBlogs(element, url, limit, feed){
        jQuery(element).load(url+ ' .blog_list:lt('+ limit+ ')', function(){

            jQuery(".postbody p:first").replaceWith(function() {
                return jQuery(this).contents();
            });
        });
    }

    var blogUrl = 'http://mysite.com/profiles/blog/list';
    var feedUrl = '/profiles/blog/feed';
    getBlogs('#all-blogs', blogUrl+ '?user=steve', 5, feedUrl);

Basically, I want to include john, bobby, and peter's blog posts in there.


getBlogs('#all-blogs', blogUrl+ '?user=steve,john,bobby,peter', 5, feedUrl);

Then just split on commas on the server

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜