Thinkphp5使用bootstrap模態框加載html出現亂碼
<a?href="/admin/user/edit/modal.html"?class="btn?btn-info"?data-toggle="modal"?data-target="#modal-login">編輯</a> ????<!--?Modal?--> ????<div?class="modal"?id="modal-login"?tabindex="-1"?> ??????<div?class="modal-dialog"?style="width:1100px"> ????????<div?class="modal-content"> ????????</div> ??????</div> ????</div>
modal.html
????????<div?class="modal-header"> ??????????<button?type="button"?class="close"?data-dismiss="modal">×</button> ??????????<h4?class="modal-title"?id="myModalLabel">編輯</h4> ????????</div> ????????<div?class="modal-body"> ????????</div> ????????<div?class="modal-footer"> ??????????<button?type="button"?class="btn?btn-default"?data-dismiss="modal">關閉</button> ??????????<button?type="button"?class="btn?btn-primary">提交</button> ????????</div>
.
.
不使用Thinkphp5可以正常加載,在Thinkphp5中使用出現如下問題,如圖
'
2019-08-22
如果你使用:return $this-view->fetch('admin@configure/productCategory');
請改用:return view();
解決問題成功
2017-08-06
我也碰到了 貌似是TP路由的問題,因為如果不用TP5加載普通頁面不存在這個問題。但用于TP5開啟了路由后就會出現這種亂碼。 ?不知道怎么解決,坐等大神
2017-06-22
看了半天了 ?大神們咋解決
2017-04-06
解決沒有???我也遇到這個問題?。。?!
2016-11-09
一看就是沒修改路徑? Js? 和 Css 都沒引入成功