有一个iframe:
library(shiny)
library(shinydashboard)
library(ggplot2)
library(data.table)
library(dplyr)
mydata <- data.frame(ended = c("14/11/2016 13:37", "15/11/2016 13:37","16/11/2016 13:47", "17/11/2016 13:51", "18/11/2016 13:51"),
task = c("Find licensing information", "Sign in to my existing account",
"Sign in to my existing account", "Bus registrations", "Make changes to my existing Operator’s Licence"),
taskLevelOfDifficulty = c("Extremely difficult", "Extremely easy", "Neither easy nor difficult", "Extremely difficult", "Extremely easy"))
mydata <- mydata %>% mutate(ended = as.Date(ended, format = "%d/%m/%Y"))
ui <- dashboardPage(
dashboardHeader(title = "Smart Survey Insights"),
dashboardSidebar(
dateRangeInput("dateRange", "Please choose date", "2016-11-14", "2016-11-15"),
checkboxInput("comparePreviousPeriod", "Compare to previous period")
),
dashboardBody(
fluidRow(
column(12, plotOutput("boxPlot"))
)
)
)
server <- function(input, output) {
filteredData <- reactive({
req(input$dateRange)
mydata[mydata$ended >= input$dateRange[1] & mydata$ended <= input$dateRange[2],]
})
output$boxPlot <- renderPlot(ggplot(filteredData(), aes(taskLevelOfDifficulty)) + geom_bar())
}
shinyApp(ui, server)
另一个js将添加&#34; src = xxx.html&#34;动态进入iframe标签。 xxx.html是本地文件,Web控制台显示:
<iframe></iframe>
对于angular4项目,我应该将单个本地html文件放在哪个目录中?
答案 0 :(得分:-1)
您的xxx.html文件在哪里?
<iframe name="xxx" src="location your xxx.html files"></iframe>