1

HTMLも使用できる電子メールを送信するためのJavaScript APIがあるため、その中にテーブルを作成していますが、機能せず、テーブルが表示されません。これが私のコードです:

<script>
    $(document).ready(function(){
        $("#commandEmail1").click(function() {
            presenter.command("emailSend",{
                "toEmail": "imran.hussain@celeritas-solutions.com",
                "toName": "Celeritas",
                "subject": "email test",
                "body": "Single Attachment",
                "bodyHtml":"<table width="200" border="1"><tr><td>&nbsp;</td><td>&nbsp;</td> </tr><tr> <td>&nbsp;</td><td>&nbsp;</td> </tr></table>",
                 "attachments": [""]
            });
            return false;
        });
    })
</script>
4

2 に答える 2

1

二重引用符内で一重引用符を使用する

"<table width='200'...

または、内部の二重引用符を次のように置き換えることができます&quot;

于 2013-04-20T04:58:04.503 に答える
0

コードは次のようにする必要があります..二重引用符を使用しています..

$(document).ready(function(){


$("#commandEmail1").click(function() {


presenter.command("emailSend",{
    "toEmail": "imran.hussain@celeritas-solutions.com",
    "toName": "Celeritas",
    "subject": "email test",
    "body": "Single Attachment",


 "bodyHtml":"<table width='200' border='1'><tr><td>&nbsp;</td><td>&nbsp;</td> </tr><tr> <td>&nbsp;</td><td>&nbsp;</td> </tr></table>
              ",
       "attachments": [""]
         });
     return false;
         });
         })
于 2013-04-20T05:01:55.570 に答える