拆分子字符串并使它们成为超链接 [英] Split substring and make them as hyperlink

查看:87
本文介绍了拆分子字符串并使它们成为超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我只是想做拆分子字符串.例如

字符串= BBA,BSC,BCOM


我必须解析字符串BBA等...分开,然后我必须使其成为超链接.任何人都可以帮忙.

谢谢

Hi
i am just trying to do split substring. For example,

string = BBA,BSC,BCOM


i have to parse the string BBA etc... separate and then i have to make it as a hyperlink. Can anyone help out.

Thank you

推荐答案

为了将字符串拆分为子字符串,这确实很容易...我只需要在Google上搜索字符串拆分"即可找到出来这个:

字符串拆分 [ ^ ]

要将任何文本转换为超链接,甚至更容易:任何超链接都遵循这些规则: http://www.w3schools.com/html/html_links.asp [^ ].

阅读后,您将能够轻松拆分字符串并在开头和结尾添加正确的文本代码,以使其成为超链接(请参见此处http://www.w3schools.com/jsref/jsref_concat_string.asp [
In order to split the string in substrings it is really easy... I''ve only had to search google for "string split" to find out this:

String splitting[^]

To convert any text to a hyperlink it is even easier: any hyperlink follows those rules: http://www.w3schools.com/html/html_links.asp[^].

After reading that you will easily be able to split strings and to add the right text codes to the beginning and to the end in order to make them hyperlinks (see here http://www.w3schools.com/jsref/jsref_concat_string.asp[^]).

PS: all what I''ve done is searching Google to find this out. I''m from spain and english is not my first language... you should try it, it works and pays it back to be able to find out this kind of solutions by yourself.

Good luck. :thumbsup:


这篇关于拆分子字符串并使它们成为超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆