콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
11393 화면

It seems that we can't define javascript function on xml file;

I wan to know whether we can and how to?

아바타
취소
베스트 답변
<template id="assets_backend" inherit_id="web.assets_backend">
     <xpath expr="." position="inside">
         <script type="text/javascript">
                 function your_function(args......)
                 {
                             //statements
                  }
         </script>
       </xpath>
 </template>
아바타
취소
작성자

thank you very much

관련 게시물 답글 화면 활동
1
12월 24
4725
1
10월 20
4869
2
6월 20
4608
5
12월 17
5919
3
1월 24
16935