search

Home  >  Q&A  >  body text

Can't it be executed when using json output array in thinkPHP?

When using json output array in thinkPHP, it is displayed at the bottom of the screen: Do you want to open or save datatest.json from localhost? After selecting to open, it displays again: This file does not have an application associated with it to perform this operation. Please install the application. If the app is already installed, create an association on the "Default App Settings" page. Experts, what is the reason? Thanks

P粉788137374P粉7881373741003 days ago1097

reply all(1)I'll reply

  • autoload

    autoload2022-03-29 16:31:21

    This should be a problem with iE. Change the Content-Type to "text/html;charset=utf-8" and try it

    reply
    0
  • Cancelreply