Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
11214 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
4487
1
ต.ค. 20
4703
2
มิ.ย. 20
4409
5
ธ.ค. 17
5759
3
ม.ค. 24
16744