我使用Enquire.js和Vue.js来查询浏览器的大小并相应地更新两个数据属性。所以,如果我这样做: ready: function() {
// Listen for changes in the browser's size
window.addEventListener("resize",
enquire.register("screen and (max-
有问题的代码是在这里:https://jsfiddle.net/ozeasa8t/ 目的是将每个()通过缓存的元件的阵列,以便创建enquire.js从动JS内部的肘节效应。 我得到错误的左和右,并会喜欢你的输入。 谢谢! // I'm separating block A and B in declaration because the cached elements are used for