更新javascript文件反映在client-pc中,但在server-pc中没有更改

时间:2017-01-26 10:56:14

标签: javascript server xampp

我已经在我的电脑上安装了XAMPP Server并使用javascript构建了一个webdocument编辑器。因此,与同一局域网连接的其他人可以使用我的IP地址访问编辑器(10.11.201.93:81)。

现在我经常更换我的电脑中的一些javascript文件,但令人惊讶的是,这些更改并没有反映在我的电脑上,而从其他客户端电脑,我可以注意到这些变化。

例如 - 这里是名为table.js

的文件的一部分更改
contents: [ {
            id: 'info',
            label: editor.lang.table.title,
            elements: [ {
                type: 'hbox',
                widths: [ null, null ],
                styles: [ 'vertical-align:top' ],
                children: [ {
                    type: 'vbox',
                    padding: 0,
                    children: [ {
                        type: 'text',
                        id: 'txtRows',
                        'default': 5, // **Number of rows in the table**
                        label: editor.lang.table.rows,
                        required: true,
                        controlStyle: 'width:5em',
                        validate: validatorNum( editor.lang.table.invalidRows ),
                        setup: function( selectedElement ) {
                            this.setValue( selectedElement.$.rows.length );
                        },
                        commit: commitValue
                    },
                    {
                        type: 'text',
                        id: 'txtCols',
                        'default': 5, // **Number of columns in the table**
                        label: editor.lang.table.columns,
                        required: true,
                        controlStyle: 'width:5em',
                        validate: validatorNum( editor.lang.table.invalidCols ),
                        setup: function( selectedTable ) {
                            this.setValue( tableColumns( selectedTable ) );
                        },
                        commit: commitValue
                    },

在这里,我只是使用上面代码中的default 5,5 的行数和列数分别从 3,2 更改为 3,2

结果在我的服务器pc中,更改不会影响显示3和2

enter image description here

但是在客户端,PC的变化反映出来......显示5和5

enter image description here

1 个答案:

答案 0 :(得分:0)

它不仅仅是简单的缓存清除问题