아래 코드를 내 사이트에 추가 할 때 다음 오류가 발생합니다. JIRA 나 웹 개발에 익숙하지 않아서 도움이 될 것입니다.JIRA Issue Collector 폼이 사이트에 플러그인되었을 때 AJAX 에러가 발생했습니다.
오류 :
이Oops! Something went wrong... AJAX error thrown: SyntaxError: Unexpected token < Don't worry though! We've logged this problem and will look into it soon!
<script type="text/javascript">
window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog\) {
//Requires that jQuery is available!
jQuery(".feedback-form"\).click(function(e\) {
e.preventDefault(\);
showCollectorDialog(\);
\}\);
\}\};
</script>
)
왜 모든 오른쪽 괄호가 "\"이스케이프 처리됩니까? 너가이 물건을 찌르는 것에 따라, 그들은 아마해서는 안된다. –
실제로 코드에서 이스케이프 문자로 수행해야하는 작업입니다. – cycloneTiger
오른쪽 괄호에서 벗어나고 왼쪽 괄호에서 벗어나지 않아도됩니다. (나는 언젠가 내 자신의 언어를 쓸 때마다 매 6 초마다 "%"로 사용자를 강제로 탈출 시키게됩니다.) –