PHP用curl获取到的网页怎么取出其中的类似数据

2024-12-03 15:35:13
推荐回答(1个)
回答1:

试试这个方法:
fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some extra data to the sender */
aoData.push( { "name": "more_data", "value": "my_value" } );
$.getJSON( sSource, aoData, function (json) {
/* Do whatever additional processing you want on the callback, then tell DataTables */
fnCallback(json)
} );
}