I have html:
<form id="fileuploadform">
<input type="file" id="fileupload" name="fileupload" />
</form>
Run Code Online (Sandbox Code Playgroud)
and jquery:
$(':file').change(function(){
var file = this.files[0];
...
});
Run Code Online (Sandbox Code Playgroud)
The problem is: the change function fires only when the file selection is different than the selection made previously. That is of course the meaning of the 'change' event. I want my function to be called with the file dialog closes, no matter what.
我尝试使用 'select' 事件——它永远不会被调用
我也试过:
$(':file').bind('dialogclose', function(event) {
alert('closed');
});
Run Code Online (Sandbox Code Playgroud)
和:
$(':file').live("dialogclose", function(){
alert('closed1');
});
Run Code Online (Sandbox Code Playgroud)
他们也没有工作。
我是CakePHP框架的新手.我对CakePHP知之甚少.所以我的问题是:ACL是自动运行还是我需要手动检查?
这个词[0] == ![0]意味着什么?虽然他们返回true.但我需要解释它true是如何返回的,因为[0]的类型是对象而且![0]返回布尔值?那他们是如何平等的呢?谢谢