0
我想把我的String作爲src插入到這個String中;如何將src插入iFrame字符串?
String my_scr="http://blabla..." is a variable will be changed fromtime to time
如何把my_scr到下面的字符串?意味着它應該取代http://youtube ...
String frameVideo = "<html><body>Video From YouTube<br><iframe width=\"420\" height=\"315\" src=\"https://www.youtube.com/embed/47yJ2XCRLZs\" frameborder=\"0\" allowfullscreen></iframe></body></html>";
如果我把它像下面,這是行不通的:
String frameVideo = "<html><body>Video From YouTube<br><iframe width=\"420\" height=\"315\" src=\my_scr frameborder=\"0\" allowfullscreen></iframe></body></html>";