私がこれを行うとき:
onClick = "return generateClient('<?php echo json_encode($_POST)?>');"
Google Chrome コンソールでこのエラーが発生しています。
Uncaught SyntaxError: Unexpected token ILLEGAL
しかし、phpからこれを行うと:
print_r(json_encode($_POST));
私は得る:
{"lang-select":"C++","question-id":"1","method-name":"Rishi","param-count":"1","lib-path":"c:\\h\\b.out","return-select":"unsigned int","sample-count":"1","class-name":"m"}
これの何が問題なのですか?