简体   繁体   English

从电子表格读取Javascript

[英]Javascript read from spreadsheet

I want to use javascript and jquery to read data from a spreadsheet that looks like this: 我想使用javascript和jquery从如下所示的电子表格中读取数据:

ID# , Name , Date     ,  Website
1   , Bob  , 2/2/2012 , www.bob.com
2   , Mark , 1/1/1990 , www.Mark.com

And then generate a markup like below: 然后生成如下所示的标记:

<body>
<img src="https">
<ul>
    <li>Name</li>
    <li>Date</li>
<ul>
</body>

where "https", "Name", and "Date" are gonna be replaced by the info from the spreadsheet. 其中“ https”,“名称”和“日期”将替换为电子表格中的信息。

I'm thinking to use the ID Number to choose which row I want to generate the code so there might be something like this: 我正在考虑使用ID号来选择要生成代码的行,因此可能会出现以下情况:

<input type="text" value="">
<button type="button">Generate</button>

My question is what's the easiest way to do it without having to use ActiveX ? 我的问题是,无需使用ActiveX的最简单方法是什么?

Note: If there is any more information I can provide you with to aid with this question, please ask freely. 注意:如果有更多我可以为您提供帮助的信息,请随意询问。

Thank you. 谢谢。

Which part are you having trouble with, reading the data, generating, or the query? 您在哪一部分遇到麻烦,读取数据,生成或查询? The first two parts seem to be pretty well covered here in this question Import a CSV file using jQuery . 这个问题的前两部分似乎已经很好地涵盖了。 使用jQuery导入CSV文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM