layer.config({ extend: 'extend/layer.ext.js' });
报错原因:prompt层layer默认没有加载,要开扩展才可以
解决之道:在当前页面,你写prompt的上面加入