给定具有未知目录的zipfile,如何将该目录重命名或移动到规范化路径?
<!-- Going to fetch some stuff -->
<target name="get.remote">
<!-- Get the zipfile -->
<get src="http://myhost.com/package.zip"
dest="package.zip"/>
<!-- Unzip the file -->
<unzip src="package.zip"
dest="./"/>
<!-- Now there is a package-3d28djh3 directory. The part after package- is
a hash and cannot be known ahead of time -->
<!-- Remove the zipfile -->
<delete file="package.zip"/>
<!-- Now we need to rename "package-3d28djh3" to "package". My best attempt
is below, but it just moves package-3d28djh3 into package instead of
renaming the …Run Code Online (Sandbox Code Playgroud) 我有一个很好的可编辑文本区域与wysihat和contentEditable.我真的需要一种拦截粘贴事件的方法来阻止它们,或者在允许插入之前处理它们的DOM.人们可以将整个网页粘贴到可编辑区域,这有点疯狂.
这可能吗?
来吧,来到我家门口.HTML5大师,火!