<th:block th:each=”seq : ${#numbers.sequence(1,10)}”> <p th:text=”${seq}”>0</p> </th:block> <th:block th:each=”seq : ${#numbers.sequence(boardPager.blockBegin,boardPager.blockEnd)}”> <span th:text=”${seq}”></span> </th:block>
PHP Laravel – websocke
class wstestEvent { use Dispatchable, InteractsWithSockets, SerializesModels; public $somedata ; /** * […]
Javascript jquery – A 버튼 눌렀을때 B 도 실행되길
<script>function test1(){$(‘#button-2’).trigger(“click”);} function test2(){alert(‘run’);}</script>
PHP Check PC or mobile on device
function isMobile(){return preg_match(“/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i”, $_SERVER[“HTTP_USER_AGENT”]);} if(isMobile()){ echo ‘Mobile’;}else{ echo ‘PC’;}
PHP CI – index.hml 없애기 – 3
<Directory /home/testuser/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>