jquery like php dom
v1.0
PHP PHP DOM Parser ที่ใช้งานง่ายพร้อมตัวเลือก CSS รหัสสั้นและความสามารถในการจัดการโหนดข้อความ
PHP Dom Query Interface Simpled การทำให้เข้าใจง่ายกว่าเอกสาร PHP DOM ดั้งเดิมซึ่งพยายามที่จะดูเหมือนใกล้ชิดกับ jQuery เพื่อดูเป็นมิตรกับนักพัฒนาส่วนหน้า ในห้องสมุดนี้ฟังก์ชั่นหลักส่วนใหญ่ใน jQuery และ php dom ที่มีลักษณะคล้าย jQuery มีลักษณะเหมือนพฤติกรรมและไวยากรณ์ ห้องสมุดนี้ทำเพื่อการฝึกอบรม
นักแต่งเพลง
composer require felipe1234-dev/php-dom-query
กระตวน
git clone git://git.code.sf.net/p/jquery-like-php-dom/repository jquery-like-php-dom
jQuery
< script >
$ ( document ) . ready ( function ( ) {
$ ( "img" ) . wrap ( "<figure></figure>" ) ;
} ) ;
</ script >php-jQuery-jQuery
<?php
include " path/webparser.php " ;
$ doc = new WebParser ();
$ doc -> loadHTMLFile ( $ url );
$ doc -> Q ( " img " )-> wrap ( " <figure></figure> " );
$ doc -> output ();
?>jQuery
< script >
$ ( document ) . ready ( function ( ) {
$ ( "ol" ) . append ( "<li>Appended item</li>" ) ;
} ) ;
</ script >php-jQuery-jQuery
include " path/webparser.php " ;
$ doc = new WebParser ();
$ doc -> loadHTMLFile ( $ url );
$ doc -> Q ( " ol " )-> append ( " <li>Appended item</li> " );
$ doc -> output ();jQuery
< script >
$ ( document ) . ready ( function ( ) {
$ ( "a:first" ) . href ( "folder/index.html" ) ;
} ) ;
</ script >php-jQuery-jQuery
include " path/webparser.php " ;
$ doc = new WebParser ();
$ doc -> loadHTMLFile ( $ url );
$ doc -> Q ( " a:first " )-> href ( " folder/index.html " );
$ doc -> output (); สำหรับตัวอย่างและการใช้งานเพิ่มเติมโปรดดูที่โฟลเดอร์การติดตั้งภายใต้ manual
Felipe Alves - [email protected]
แจกจ่ายภายใต้ใบอนุญาต MIT ดู LICENSE สำหรับข้อมูลเพิ่มเติม
https://github.com/felipe1234-dev/github-link
git checkout -b feature/jquery-like-php-dom )git commit -am 'Add some description' )git push origin feature/jquery-like-php-dom )