元名称“刷新”不起作用

时间:2017-11-19 07:02:25

标签: html html5

我有这个:

<head>
  <!-- ..... -->
      <meta name="refresh" content="3" />
  <!-- ..... -->

出于某种原因,它不是每3秒重定向一次。什么都没发生。怎么会这样?

2 个答案:

答案 0 :(得分:0)

使用了错误的属性。它应该是: func addBackButton() { let backButtonImage = UIImage(named: "BackButton.png")?.withRenderingMode(.alwaysTemplate) let backButton = UIButton(type: .custom) backButton.setImage(backButtonImage, for: .normal) backButton.tintColor = .white backButton.setTitle(" Back", for: .normal) backButton.setTitleColor(.white, for: .normal) backButton.addTarget(self, action: #selector(self.backAction(_:)), for: .touchUpInside) self.navigationItem.leftBarButtonItem = UIBarButtonItem(customView: backButton) }

答案 1 :(得分:0)

它应该是:

3*4%5/2 = (((3*4)%5)/2) = 1