如何升级jQuery Mobile Splitview?

时间:2017-05-25 18:26:57

标签: jquery jquery-mobile mobile-website splitview

我有一个旧的jQuery Mobile Splitview应用程序,需要隐藏左侧的菜单。

更新: 在Chrome中查看应用于localhost的应用,然后进入检查菜单以查看电话视图:它的着陆页面正常,显示内容和菜单正确折叠。 直到我登录或单击菜单进入任何子菜单。菜单消失了,我不得不使用手机回来或转发。

enter image description here

我的问题是

  1. 如何隐藏左侧菜单(如果仍使用splitview)?
  2. 或者有什么可以替换它,因为jQuery Mobile Splitview没有活动5年。似乎不再支持他人了。

    通过Chrome在localhost视图中着陆页的图片看起来很不错。 enter image description here

  3. 但是当我们上传到heroku时它只显示菜单,直到我们点击回家。 enter image description here

    以下我认为是关于这个问题的代码。

    export class User {
    
      constructor(
        public userName?: string,
        public firstName?: string,
        public lastName?: string,
        public createdDate?: Date,
        public lastUpdatedDate?: Date,
        public active?: boolean,
        public appRoles?: AppRole[],
        public userId?: number) { }
    
    }
    

1 个答案:

答案 0 :(得分:0)

除非我移动它以使其在部分文件中刷新,否则看起来视口不起作用。 在我的情况下,我在_metatag.html.erb中都有了metatag,然后工作了。

我还有另一个需要解决的功能。如何隐藏左侧菜单并使内容100%。

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="robots" content="follow, all" />
  <meta name="language" content="en, th" />
  <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1">