Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个奇怪的问题。我正在使用文件选择器“pick”小部件来上传徽标。首次呈现页面时,会显示小部件。但是,如果我离开页面并再次访问它,则不会呈现小部件。我必须明确清除缓存才能再次看到它。任何帮助将不胜感激。
您的应用程序是否使用 Pjax 之类的东西来加载页面?Filepicker 在页面加载时初始化小部件。如果页面是通过 pjax 之类的方式加载的,那么每次导航到该页面时都需要重新初始化小部件。
例如:filepicker.constructWidget(document.getElementById(idOfElementToBeConvertedToWidget))
我必须在我正在构建的使用 Pjax 的应用程序上执行此操作。