V$LOG.STATUS

Log status:
■ UNUSED - Online redo log has never been written to. This is the state
of a redo log that was just added, or just after a RESETLOGS, when it
is not the current redo log.
■ CURRENT - Current redo log. This implies that the redo log is active.
The redo log could be open or closed.
■ ACTIVE - Log is active but is not the current log. It is needed for
crash recovery. It may be in use for block recovery. It may or may not
be archived.
■ CLEARING - Log is being re-created as an empty log after an ALTER
DATABASE CLEAR LOGFILE statement. After the log is cleared, the
status changes to UNUSED.
■ CLEARING_CURRENT - Current log is being cleared of a closed
thread. The log can stay in this status if there is some failure in the
switch such as an I/O error writing the new log header.
■ INACTIVE - Log is no longer needed for instance recovery. It may be
in use for media recovery. It might or might not be archived.[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-1001543/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-1001543/

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue-upload-component Test</title> <script src="https://unpkg.com/vue"></script> <script src="https://unpkg.com/vue-upload-component"></script> </head> <body> <div id="app"> <ul> <li v-for="file in files">{{file.name}} - Error: {{file.error}}, Success: {{file.success}}</li> </ul> <file-upload ref="upload" v-model="files" post-action="/post.method" put-action="/put.method" @input-file="inputFile" @input-filter="inputFilter" > Upload file </file-upload> <button v-show="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true" type="button">Start upload</button> <button v-show="$refs.upload && $refs.upload.active" @click.prevent="$refs.upload.active = false" type="button">Stop upload</button> </div> <script> new Vue({ el: '#app', data: function () { return { files: [] } }, components: { FileUpload: VueUploadComponent }, methods: { /** * Has changed * @param Object|undefined newFile Read only * @param Object|undefined oldFile Read only * @return undefined */ inputFile: function (newFile, oldFile) { if (newFile && oldFile && !newFile.active && oldFile.active) { // Get response data console.log('response', newFile.response) if (newFile.xhr) { // Get the response status code console.log('status', newFile.xhr.status) } } }, /** * Pretreatment * @param Object|undefined newFile Read and write * @param Object|undefined oldFile Read only * @param Function prevent Prevent changing * @return undefined */ inputFilter: function (newFile, oldFile, prevent) { if (newFile && !oldFile) { // Filter non-image file if (!/\.(jpeg|jpe|jpg|gif|png|webp)$/i.test(newFile.name)) { return prevent() } } // Create a blob field newFile.blob = '' let URL = window.URL || window.webkitURL if (URL && URL.createObjectURL) { newFile.blob = URL.createObjectURL(newFile.file) } } } }); </script> </body> </html> 将这个页面改为 vue3 的写法
06-13
好的,下面是将这个页面改为 Vue 3 的写法: ```html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue-upload-component Test</title> <script src="https://unpkg.com/vue@next"></script> <script src="https://unpkg.com/vue-upload-component@3.0.0-beta.6"></script> </head> <body> <div id="app"> <ul> <li v-for="file in files">{{file.name}} - Error: {{file.error}}, Success: {{file.success}}</li> </ul> <file-upload ref="upload" v-model="files" :post-action="'/post.method'" :put-action="'/put.method'" @input-file="inputFile" @input-filter="inputFilter" > Upload file </file-upload> <button v-show="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true" type="button">Start upload</button> <button v-show="$refs.upload && $refs.upload.active" @click.prevent="$refs.upload.active = false" type="button">Stop upload</button> </div> <script> const { createApp, ref } = Vue; const { VueUploadComponent } = vueUploadComponent; createApp({ setup() { const files = ref([]); const inputFile = (newFile, oldFile) => { if (newFile && oldFile && !newFile.active && oldFile.active) { // Get response data console.log('response', newFile.response); if (newFile.xhr) { // Get the response status code console.log('status', newFile.xhr.status); } } }; const inputFilter = (newFile, oldFile, prevent) => { if (newFile && !oldFile) { // Filter non-image file if (!/\.(jpeg|jpe|jpg|gif|png|webp)$/i.test(newFile.name)) { return prevent(); } } // Create a blob field newFile.blob = '' let URL = window.URL || window.webkitURL if (URL && URL.createObjectURL) { newFile.blob = URL.createObjectURL(newFile.file) } }; return { files, inputFile, inputFilter } }, components: { 'file-upload': VueUploadComponent } }).mount('#app'); </script> </body> </html> ``` 主要变化如下: - 使用 `createApp` 创建 Vue 实例; - 使用 `ref` 创建响应式变量; - 使用 `setup` 函数代替 `data` 属性; - 使用 `VueUploadComponent` 替代 `vueUploadComponent`; - 使用 `v-bind` 缩写 `:` 替代 `v-bind`; - 使用 `v-on` 缩写 `@` 替代 `v-on`; - 使用 `file-upload` 替代 `file-upload`。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值