我有一个表示文件的StringBuffer。 我想在(某些)行的开头添加注释字符。 例如,如果这是我的内容看起来像: line
line
line
line-to-comment
line-to-comment
line
line
我希望得到如下结果: line
line
line
#line-to-comment
#line-to-comment
line
line
我试图通过使用jQuery解析由twitter提供的JSON文件来制作显示5条推文的Twitter提要。我制作了jsFiddle over here。 $(document).ready(function() {
var k = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=Twitter&inclu