我使用此代码使用<div class="wpdf_files_list_container">
<ul class="wpdf-list-style">
<li class="clearfix active_alternative">
<div class="row_filename">
<p class="wpdf_file_name"><span class="wpdf_document_icon"><img src="document.png" class="img-responsive" data-lazy-loaded="true" style="display: block;"><img src ="document.png"></span>A File Name 2015-11-01.pdf</p>
</div>
<div class="row_downloadbutton"><a class="pdf btn btn-xs btn-primary" href="A File Name 2015-11-01.pdf" target="_blank">Download</a></div>
</li>
<li class="clearfix deactive_alternative">
<div class="row_filename">
<p class="wpdf_file_name"><span class="wpdf_document_icon"><img src="document.png" class="img-responsive" data-lazy-loaded="true" style="display: block;"><img src ="document.png"></span>B File Name 2016-01-01.pdf</p>
</div>
<div class="row_downloadbutton"><a class="pdf btn btn-xs btn-primary" href="B File Name 2016-01-01.pdf" target="_blank">Download</a></div>
</li>
<li class="clearfix active_alternative">
<div class="row_filename">
<p class="wpdf_file_name"><span class="wpdf_document_icon"><img src="document.png" class="img-responsive" data-lazy-loaded="true" style="display: block;"><img src ="document.png"></span>C File Name 2015-12-01.pdf</p>
</div>
<div class="row_downloadbutton"><a class="pdf btn btn-xs btn-primary" href="C File Name 2015-12-01.pdf" target="_blank">Download</a></div>
</li>
...
</ul>
</div>
验证网址:
form_validation
但是每次运行我的代码时,它都会返回 $this->form_validation->set_rules("edtQuestionURL", "Site URL", "trim|required|url");
。
我的错误是什么?我在false
文件中做了一些更改(我从StackOverflow获取它们)但它不起作用。请指导我。
答案 0 :(得分:0)
也许你可以尝试这样
Response.Cookies.Append()
或者
$this->form_validation->set_rules("edtQuestionURL", "Site URL", "trim|required|valid_url");