如何使用javascript
重定向编码器中的控制器文件?在这种情况下,我想在弹出窗口中打开一个文件。
这是我的代码:
<script>
window.open(
'<?php echo $this->config->base_url()."contorllers/welcome_pop"?>',
'',
'width=700, height=100, toolbar=0, menubar=0, location=0,
status=1, scrollbars=no, resizable=no, left=200, top=200');
</script>
文件名为:
controllers/welcome_pop.php
谢谢。
你为什么不尝试只调用网址?
<script>
window.open(
'/index.php/controller/<function>',
'',
'width=700, height=100, toolbar=0, menubar=0, location=0,
status=1, scrollbars=no, resizable=no, left=200, top=200');
</script>
是加载welcome_pop视图(可能是索引)的函数