我正在使用VS2012和Javascript开发一个metro应用程序
我想重置文件输入的内容:
<input type="file" id="uploadCaptureInputFile" class="win-content colors" accept="image/*" />
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
我尝试在此处的链接后实现页面刷新按钮.但是当我尝试部署时shinyapp.io,它失败并要求安装V8我已经完成的软件包.该应用程序在机器上正常工作.我使用的代码是:
jsResetCode <- "shinyjs.reset = function() {history.go(0)}",
useShinyjs(), # Include shinyjs in the UI
extendShinyjs(text = jsResetCode), # Add the js code to the page
p(actionButton("reset_button", "Reset Tool"))
Run Code Online (Sandbox Code Playgroud)
在server.R:
observeEvent(input$reset_button, {js$reset()})
Run Code Online (Sandbox Code Playgroud)
有没有办法做到这一点没有shinyjs?