API Docs for: 1.0.0
Show:

HttpShareViewModel Class

Defined in: sd/httpshare.js:188
Module: HttpShare

HttpShareViewModel

Methods

backFolder

()

Defined in sd/httpshare.js:329

回到上一级目录

bindEvent

()

Defined in sd/httpshare.js:859

事件绑定

checkDeleteBtnStatus

()

Defined in sd/httpshare.js:888

刷新删除按钮状态

checkFileNameAndPath

(
  • filename
  • path
)

Defined in sd/httpshare.js:762

文件名和路径检查

Parameters:

  • filename String

    文件名

  • path Boolean

    是否包含路径

checkFileNameChars

(
  • filename
  • isIncludePath
)

Defined in sd/httpshare.js:806

文件名特殊字符检查

Parameters:

  • filename String

    文件名

  • isIncludePath Boolean

    是否包含路径

checkFilePathForDownload

(
  • path
)

Defined in sd/httpshare.js:837

下载文件是检查文件路径是否包含特殊字符

Parameters:

  • path String

    文件路径

clearUploadInput

()

Defined in sd/httpshare.js:714

清空上传控件

enterFolder

(
  • name
)

Defined in sd/httpshare.js:310

进入文件夹

Parameters:

  • name String

    文件夹名

init

()

Defined in sd/httpshare.js:912

页面初始化

pagination

()

Defined in sd/httpshare.js:748

翻页

refreshBtnsStatus

()

Defined in sd/httpshare.js:375

更新按钮状态

refreshFileList

(
  • path
  • index
  • alertShown
)

Defined in sd/httpshare.js:342

刷新文件列表

Parameters:

  • path String

    文件夹名,"/"开头

  • index Integer

    页码

  • alertShown Boolean

    alert是否已经显示

updateSdMemorySizes

()

Defined in sd/httpshare.js:730

更新SD卡容量显示数据

Events

cancelCreateNewFolderClickHandler

Defined in sd/httpshare.js:407

取消显示新建文件夹按钮点击事件

checkPromptInput

Defined in sd/httpshare.js:522

Prompt弹出框INPUT校验函数

checkSdStatus

Defined in sd/httpshare.js:255

T卡热插拔时状态监控,拔插卡重刷界面

createNewFolderClickHandler

Defined in sd/httpshare.js:418

新建文件夹按钮点击事件

deleteBtnClickHandler

Defined in sd/httpshare.js:555

删除按钮点击事件

deleteBtnClickHandler

Defined in sd/httpshare.js:629

文件上传按钮点击事件

openCreateNewFolderClickHandler

Defined in sd/httpshare.js:397

显示新建文件夹按钮点击事件

pagerItemClickHandler

Defined in sd/httpshare.js:273

页码点击事件处理

Event Payload:

  • num Integer

    页码

renameBtnClickHandler

Defined in sd/httpshare.js:458

重命名按钮点击事件

Event Payload:

  • oldName String

    原文件名