Home >Backend Development >PHP Problem >How to implement printing function in php
You can use jquery’s printarea and js to achieve
There may be a problem with the printed page being blank.
Solution:
doc = iframe.contentWindow.document;
You need to open it first, then add doc.open();.
For more related tutorials, please visit php中文网.
The above is the detailed content of How to implement printing function in php. For more information, please follow other related articles on the PHP Chinese website!