logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

解决Warning: Cannot modify header information - headers already sent by (output started at /usr/local/

1.原因的出现:PHP接收到数据之后,先是echo了一个数据到前端,然后再发送查询到的数据库数据到前端,就会出现这个问题。以下为PHP代码:<?php$status = $_GET['STATUS'];echo $status;//这里与下面的echo起了冲突//打开数据库class MyDB extends SQLite3{function __construct(){$this->

#php
ollama安装出现curl -fsSL https://ollama.com/install.sh | sh报错

所以需要切换到root用户,再使用命令sudo aptinstall curl来安装。解决方法:运行snap install curl或者aptinstall curl。原因是:没有权限安装curl。原因:缺乏curl命令行。安装好curl即可。

文章图片
#linux#运维#服务器 +1
解决Warning: Cannot modify header information - headers already sent by (output started at /usr/local/

1.原因的出现:PHP接收到数据之后,先是echo了一个数据到前端,然后再发送查询到的数据库数据到前端,就会出现这个问题。以下为PHP代码:<?php$status = $_GET['STATUS'];echo $status;//这里与下面的echo起了冲突//打开数据库class MyDB extends SQLite3{function __construct(){$this->

#php
vue前端控制器中出现this is undefined的问题

解决vue前端控制器中出现this is undefined的问题出现问题的代码。getAllLog1(){this.$http({method: "get",url: "/getAllog1.php",}).then(function (response){this.tableData1=response.data;}).catch(function (e

ollama安装出现curl -fsSL https://ollama.com/install.sh | sh报错

所以需要切换到root用户,再使用命令sudo aptinstall curl来安装。解决方法:运行snap install curl或者aptinstall curl。原因是:没有权限安装curl。原因:缺乏curl命令行。安装好curl即可。

文章图片
#linux#运维#服务器 +1
vue中使用axios技术解决前端跨域问题

vue中使用axios技术解决前端跨域问题需求:表面上前端发送请求:http://localhost:8081/api/user实际上应该访问Linux系统的接口:http://虚拟机IP:端口/api/user方法:步骤1:在config文件中index.js添加如下代码// 进行跨域处理proxyTable: {'/api': {target: 'http://192.168.233.128:

#javascript
Vue使用elementUI中的表单验证数字大小设置

elementUI中的表单验证数字大小设置步骤:<el-form-item label="转矩环Ki" prop="IqKi"> <el-input v-model.number="ruleForm.IqKi"></el-input> </el-form-item>v-model后添加.number表示浏览器输入的数字为数字类型,如果不添加的话,输入

#javascript#node.js#elementui
到底了