1

我只是想知道是否有人知道如何制作其中一个自动建议文本框,以便在您开始输入时,它会根据 excel 文件自动建议?我到处搜索,找不到任何东西,我不知道从哪里开始。

创建自动提示不是我的问题,它只是从 excel 文件中获取数据并显示它以建议与他们输入的内容相关的内容。

我会很感激任何帮助。谢谢

4

2 回答 2

0

From a high level perspective, you'll need to use ajax to grab a file and parse its contents. Once you've done that, you can begin checking the user input for matches to the parsed content.

于 2010-09-08T17:38:37.610 回答
0

您希望它保留为 Excel 吗?

如果您愿意,可以将其导出为 xml。这会使事情变得容易得多。如果您一心想要使用一些表格格式的数据,我可以建议使用 mysql,甚至是 sqlite 吗?

PS:粗略的谷歌搜索显示:
1. http://amiworks.co.in/talk/readingparsing-excel-spreadsheet-using-php/
2. http://www.ibm.com/developerworks/opensource/library/ os-phpexcel/index.html

于 2010-09-08T17:40:07.483 回答