다음과 같은 json 구성 파일이 있습니다.
"type": "script",
"label": "coreapps.archivesRoom.printSelected",
"script": "emr.fragmentActionLink(${project.parent.artifactId},\"downloadPatientHistory\", \"download\", {{patient.patientId}})",
"icon": "icon-download",
"order": -25,
"require": "!visit && !patient.person.dead",
"requiredPrivilege": "Task: coreapps.createVisit"
}
나는 '스크립트'를 링크하고 싶다. href="javascript:emr.fragmentActionLink(lfhcforms," downloadpatienthistory",="" "download",="" 7)
하지만 내 HTML보기가 올바른 링크를 인식하지 못합니다. 아래 스크린 샷에서 링크는 불완전합니다. 힌트가 있습니까?
귀하의 href가 자바 스크립트 기능인 것 같습니다. 나는 작은 따옴표를 사용하여 다음과 같이 보일 것입니다.
href="javascript:emr.fragmentActionLink(lfhcforms,' downloadpatienthistory',='' 'download',='' 7)"
데이터 소스가 해당 JSON 파일이므로 JSON 개체를 구문 분석 / 직렬화하고 type.script
속성을 변경하여 큰 따옴표를 작은 따옴표로 변경해야합니다. 그것을 구문 분석하고 검색 \"
하여 '
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다