这个JavaScript函数(__doPostBack)是什么意思?
PHP中文网
PHP中文网 2017-04-10 16:52:15
0
1
1519
function handleChange(opt) {
    if (!confirm('are you sure')) {
        opt.selectedIndex = opt.oldIndex;
    }
    else {
        __doPostBack('MyDropDown','')
    }
}

上面这段代码的__doPostBack是哪里来的?
我调用的时候,一直报下面的错误:

我是在看这个问题:
http://stackoverflow.com/questions/5822613/confirm-dropdownlist-selected-value

PHP中文网
PHP中文网

认证0级讲师

répondre à tous(1)
小葫芦

__doPostBack别人的伪代码
这是一个定义的回调函数
当你的确认变更是,发送异步请求~~~

你要调试,改成机子的一个函数就好啦~~

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!