${'$'}

使用${'$'}替换$符号

const jsonData = [{"id":1,"bookName":"《ces1》(未删节1-90章)作者:剑尘.txt","type":1,"categories":"玄幻奇幻","categoriesId":0,"lastRead":14,"updateTime":0,"del_flag":0},{"id":2,"bookName":"《ces12》(珍藏全本)作者: .txt","type":1,"categories":"玄幻奇幻","categoriesId":0,"lastRead":177,"updateTime":0,"del_flag":0},{"id":3,"bookName":"《ces1》(全本)作者: .txt","type":1,"categories":"玄幻奇幻","categoriesId":0,"lastRead":0,"updateTime":0,"del_flag":0}];
		console.log('数据获取成功:', jsonData);
      const table = $("#bookTable");
      jsonData.forEach(item => {
        const newRow = `
        <tr>
          <td>
            <div>
              <button class="deleteBtn" data-id="${'$'}{item.id}">删除</button>
              <button class="topBtn" data-id="${'$'}{item.id}">置顶</button>
              <button class="otherBtn" data-item='${'$'}{JSON.stringify(item)}'>其他</button>
            </div>
          </td>
          <td><a href="/fictionDetails/${'$'}{item.id}">${'$'}{item.bookName}</a></td>
        </tr>
      `;
        table.append(newRow);
      });