我試着從父母傳遞變量到孩子的jQuery型動物的方式,我已經得到了一些問題,包括引號的文本:通過VAR與報價從父母到孩子的JavaScript
在孩子彈出創建一些HTML元素嵌入JavaScript調用方法的父,其中一個變量(標籤)是一個字符串,可以包含報價,如果我嘗試顯示其內容在父頁面上,該字符串被切斷後的第一個報價。
.data("ui-autocomplete")._renderItem = function(ul, item) {
$('#grille_table').append("<tr><td><img onclick=parent.updateFunction('"+ item.id +"',this.title,this.src); src=/uploads/Media/source/"+ item.image +" width=100 height=100 title='"+ item.label +"' />"+ item.label +"");
這怎麼能實現呢?
thx
thx它完美的作品,我會盡量記住報價優先級 – krifur 2013-05-03 10:23:17