http://www.ipwebdesign.net/kaelisSpa...icSelects.html - - ~kaeli~ 男人谁落入一个室内装潢机器完全恢复了 。 http ://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpaceDoes this help? http://www.ipwebdesign.net/kaelisSpa...icSelects.html----~kaeli~The man who fell into an upholstery machine is fullyrecovered. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace 这有帮助吗? http://www.ipwebdesign.net/kaelisSpa...icSelects.html - - 〜凯莉〜那个落入室内装潢机器的人已经完全康复了。 http://www.ipwebdesign.net/wildAtHeart HTTP://www.ipweb design.net/kaelisSpace Does this help? http://www.ipwebdesign.net/kaelisSpa...icSelects.html -- -- ~kaeli~ The man who fell into an upholstery machine is fully recovered. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace 你不可能,更有可能。 答案很大程度上取决于环境。 如果这是针对Intranet / IE-only env,您可以使用ActiveX来读取文件 和东西。 如果不是,你需要将文件保存为服务器上的文本并使用一些 方法retrie将值转换为JS。同样,取决于env,但是 你需要一个服务器端脚本来获取值并在生成之前写入 页面或一个人之后,类似于: http:// www .ipwebdesign.net / kaelisSpa ... alidation.html 无论哪种方式,都涉及到服务器端脚本语言。 基本上,标准的互联网跨浏览器javascript无法自动读取服务器上的文件。 如果这只是一次性生成硬件的事情-coded javascript基于 你HD上的Excel文件,你可以为 做一个快速的小Excel宏。但是我假设列表发生了变化而且JS是动态的。 如果这只适用于你的机器,你可以使用HTA来阅读 Excel。 看,这完全取决于你在做什么,确切地说。 - b $ b - ~kaeli~ 你不能拥有一切。你会把它放在哪里? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpaceYou don''t, more than likely.The answer is highly dependent on environment.If this is for an intranet/IE-only env, you can use ActiveX to read the fileand stuff.If it isn''t, you need to save the file as text on the server and use somemethod of retrieving the values into the JS. Again, depends on env, butyou''ll need a server-side script to either get the values and write into thepage before it''s generated or one to do it after, similar to: http://www.ipwebdesign.net/kaelisSpa...alidation.htmlEither way, there''s a server-side scripting language involved.Basically, standard internet cross-browser javascript cannot read files onthe server all by itself.If this is a one-time only thing to generate hard-coded javascript based onthe Excel file on your HD, you could make a quick little Excel macro forthat. But I''m assuming the list changes and the JS is dynamic.If this is to work only for you on your machine, you can use an HTA to readthe Excel.See, it just all depends on what you''re doing, exactly.----~kaeli~You can''t have everything. Where would you put it? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace 这篇关于邮政编码和城市的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!