簡體   English   中英

如何用鈦創建文件?

[英]How to create a file in titanium?

如何用鈦創建文件? 誰能給我一些代碼。

http://wiki.appcelerator.org/display/guides/Working+with+Local+Data#WorkingwithLocalData-FilesystemStorage

我提供給您的Wiki鏈接以及appcelerator文檔中有很多有用的信息。

我建議在發布問題之前先去那里看看,這樣可以為您節省一些時間

https://github.com/appcelerator/KitchenSink

var filename ='test.txt'; var f = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,filename);

這將在“資源”文件夾中自動創建文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM