簡體   English   中英

我如何在此文本中創建超鏈接

[英]how do i create the hyperlink in this text

我創建此代碼,當我嘗試測試此代碼時,我想使文本成為超鏈接,該代碼將轉到默認頁面

$("body").data("q1", {
    id: "q1",
    title: "Is the interest attributable to a business carried on in Malaysia by the " +  '<a href :\"http://prod.resource.wkasiapacific.com/resource/scion/document/default/wmwttcomm1Uio1659397sl244904519?cfu=default\"> non-resident?</a>',
    next: "q2",
    back: "intro",
    yes: "c1",
    no: "q2",
    answer : ""
});

標題字符串中的a-tag格式看起來很奇怪,我也不知道有什么特殊的原因將字符串分成兩部分。

嘗試像這樣設置標題

...
title: 'Is the interest attributable to a business carried on in Malaysia by the  <a href=\"http://prod.resource.wkasiapacific.com/resource/scion/document/default/wmwttcomm1Uio1659397sl244904519?cfu=default\"> non-resident?</a>'
...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM