2013-07-12 132 views
0

我創建這個代碼 我想使文本成爲超級鏈接 當我試圖測試這個 該代碼會去的默認頁如何創建超鏈接在本文

$("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 : "" 
}); 
+1

什麼是你的問題? –

回答

0

的標題字符串中的標籤看起來很奇怪,我也不知道你有什麼特別的理由將字符串分成兩部分。

嘗試設置標題,像這樣

... 
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>' 
...