相关疑难解决方法(0)

如何重置<input type ="file">

我正在使用VS2012和Javascript开发一个metro应用程序

我想重置文件输入的内容:

<input type="file" id="uploadCaptureInputFile" class="win-content colors" accept="image/*" />
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

javascript winjs visual-studio-2012

361
推荐指数
19
解决办法
43万
查看次数

R刷新的页面刷新按钮

我尝试在此处的链接后实现页面刷新按钮.但是当我尝试部署时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

r shiny shinyjs

4
推荐指数
1
解决办法
7077
查看次数

标签 统计

javascript ×1

r ×1

shiny ×1

shinyjs ×1

visual-studio-2012 ×1

winjs ×1