Odoo 12表格响应条件

2024-09-27 21:23:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要给mobile一张表格。主要思想是动态解析表单。你知道吗

有什么想法吗? 主要思想是:

if (isMobile) {
    <web-mobile></web-mobile>
}
else {
    <web-desktop></web-desktop>
}

我得到了设备vía Javascript,使用

var config = require('web.config');
    config.device.isMobile;

但我需要通过模板解析表单。这是可能的???你知道吗


Tags: webconfig表单ifvardevice动态require

热门问题