为什么这个 create-react-app 不能在移动浏览器上运行?
Why won't this create-react-app work on mobile browsers?
我很困惑。 (github) 小部件在桌面上运行良好,但在移动浏览器上有些问题。我希望 (1) css 和 (2) this.props.date 在移动设备上更新,就像在桌面浏览器上一样。在桌面上查看(从我的 codesandbox 中删除以节省空间,运行 来自 github,它是 create-react-app),然后在移动设备上查看它以注意这些问题。我不知道移动浏览器在代码中的具体位置是错误的。它不是带有 create-react-app 的 polyfill startPad,我把它去掉了。我正在点击的 create-react-app webpack 是否还有其他问题?
codesandbox-code Edit: I deleted this when I was cleaning my github, you can see an optimized version of the calendar for use at https://codesandbox.io/s/recursing-paper-4vosh or https://github.com/NickCarducci/Wavepoint.la
将近三个月后,我重构了 Glad 的组件,使其不使用 jsx 中的函数,但这不是问题所在(尽管我认为这是更好的做法,对吧?)
(已修复,但不是明确的答案)问题是 css 指定 {inMonth}
变量的症状,我创建了状态并四处移动......到父组件...... basedate
是函数 isSameMonth()
中的问题,它以某种方式在桌面上获取浏览日期,但在移动设备上却没有
(link to codesandbox Month component) 不管怎样,这是我的 Glad 日历版本,如果你学会了 React,自定义起来会容易得多 post-2018,我想
https://codesandbox.io/s/recursing-paper-4vosh?file=/src/components/Calendar/FullCalDrawer/MonthCalSlider.js(点击右下角的圆圈[被“在移动设备上打开沙盒”覆盖的一半],指纹徽标打开日历,然后点击左上角的点图标打开月度视图)...显示{inMonth}
现在在移动设备上指定子组件 css
这也将在 https://github.com/Wavepoint.la 之后 post 一天左右
(我试着把它变成一个 codepen 和 jsbin 但失败了,需要继续)
我很困惑。 (github) 小部件在桌面上运行良好,但在移动浏览器上有些问题。我希望 (1) css 和 (2) this.props.date 在移动设备上更新,就像在桌面浏览器上一样。在桌面上查看(从我的 codesandbox 中删除以节省空间,运行 来自 github,它是 create-react-app),然后在移动设备上查看它以注意这些问题。我不知道移动浏览器在代码中的具体位置是错误的。它不是带有 create-react-app 的 polyfill startPad,我把它去掉了。我正在点击的 create-react-app webpack 是否还有其他问题?
codesandbox-code Edit: I deleted this when I was cleaning my github, you can see an optimized version of the calendar for use at https://codesandbox.io/s/recursing-paper-4vosh or https://github.com/NickCarducci/Wavepoint.la
将近三个月后,我重构了 Glad 的组件,使其不使用 jsx 中的函数,但这不是问题所在(尽管我认为这是更好的做法,对吧?)
(已修复,但不是明确的答案)问题是 css 指定 {inMonth}
变量的症状,我创建了状态并四处移动......到父组件...... basedate
是函数 isSameMonth()
中的问题,它以某种方式在桌面上获取浏览日期,但在移动设备上却没有
(link to codesandbox Month component) 不管怎样,这是我的 Glad 日历版本,如果你学会了 React,自定义起来会容易得多 post-2018,我想
https://codesandbox.io/s/recursing-paper-4vosh?file=/src/components/Calendar/FullCalDrawer/MonthCalSlider.js(点击右下角的圆圈[被“在移动设备上打开沙盒”覆盖的一半],指纹徽标打开日历,然后点击左上角的点图标打开月度视图)...显示{inMonth}
现在在移动设备上指定子组件 css
这也将在 https://github.com/Wavepoint.la 之后 post 一天左右 (我试着把它变成一个 codepen 和 jsbin 但失败了,需要继续)