不知道百度文库是不是用flash做的,iOS设备不支持adobe flash player,但看百度文库、豆丁文库没问题,是因为他们把swf转换成html了吗?还是怎么实现的?
巴扎黑2017-04-17 12:02:22
Baidu Wenku was originally made in flash, but now it has been changed.
Flash is just a way of displaying the front-end. The front-end requests data from the back-end, the back-end returns the data, and the front-end displays the data. As for whether the front-end uses flash or HTML5, or flash is used on some devices. It doesn't matter if you use html5 on some devices. There is no problem of converting swf to html.
Convert documents in various formats to HTML. For the specific technical implementation, you can only ask the people at Baidu. If you want to know the principle of converting a specific format to HTML, you can Google it separately. Basically, there are open source implementations, and you can refer to their codes - of course, the conversion effect may not be as perfect as some proprietary software, but it does not affect Understand the fundamentals.