Home >Web Front-end >JS Tutorial >jquery combines the code of C# background array to automatically add links to the keywords of the article_jquery

jquery combines the code of C# background array to automatically add links to the keywords of the article_jquery

WBOY
WBOYOriginal
2016-05-16 18:04:311078browse

When we need to read multiple keywords in the background, we can first read the background database into an array (separate with "," when adding multiple keywords to the database):

Copy code The code is as follows:

public string[] str; //Add a public array and call jquery again
protected void Page_Load(object sender, EventArgs e)
{
string str1 = Keywords for reading the database;
str=str1.Split(',');
}
JQuery of the page :






<%=article%>



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn