当前位置: 首页 > news >正文

帮别人设计做关于图的网站百度推广多少钱一天

帮别人设计做关于图的网站,百度推广多少钱一天,我想做服装网站怎么做,汕头东莞网站建设一. 创建项目 npx --package vue/cli vue 项目成功启动后,进入http://localhost:3200,即可进入创建好的页面(假设启动端口为3200) 二. 测试网络通讯模块 假设有本地服务器地址localhost:8000提供接口服务,接口为localhost:8000/token&#…

一. 创建项目

npx --package @vue/cli vue

项目成功启动后,进入http://localhost:3200,即可进入创建好的页面(假设启动端口为3200)

二. 测试网络通讯模块

假设有本地服务器地址localhost:8000提供接口服务,接口为localhost:8000/token,修改代码

<script setup>import {ref} from 'vue'
import axios from 'axios'
import qs from 'qs'
import 'unocss'defineProps({msg: String,
})function clickTest() {console.log("按钮点击")// var axios = require('axios');var data = qs.stringify({'username': 'hahaha','password': '123456'});var config = {method: 'post',url: 'http://localhost:8000/token',headers: {'Access-Control-Allow-Credentials': 'True','Access-Control-Allow-Origin': '*/*'},data: data};axios(config).then(function (response) {console.log(JSON.stringify(response.data));}).catch(function (error) {console.log(error);});
}const count = ref(0)
</script><template><h1>{{ msg }}</h1><button v-on:click="clickTest">测试</button><p>Check out<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank">create-vue</a>, the official Vue + Vite starter</p><p>Install<a href="https://github.com/vuejs/language-tools" target="_blank">Volar</a>in your IDE for a better DX</p><p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
</template><style scoped>
.read-the-docs {color: #888;
}
</style>

执行代码,如果后端服务器执行正常,就会有相应的返回值

三. 集成、测试UnoCSS

1. 安装

npm install -D unocss

2. 集成

修改 vite.config.js

import UnoCSS from 'unocss/vite'

新建 uno.config.js

import {defineConfig, presetUno, presetIcons, presetAttributify} from 'unocss'
import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'export default defineConfig({presets: [presetUno(), // 添加 UnoCSS 的默认样式预设presetAttributify(),presetIcons({warn: true,prefix: ['i-'],extraProperties: {display: 'inline-block',},collections: {me: FileSystemIconLoader('./src/assets/isme'),fe: FileSystemIconLoader('./src/assets/feather'),},})],
})

以上代码用于配置unocss到系统中,注意“collections”中的配置是自定义图标的路径

3. 显示

  <div class="text-center text-red-500">Hello World!</div>

显示出以上效果说明unocss配置成功。

4. 图标()

  <div m2 f-c hover="op80"><a i-carbon-logo-github text-3xl text-black href="https://github.com/chris-zhu" target="_blank" /><div i-carbon:3d-cursor text-3xl text-blue /><button text-green text-3xl class="i-carbon-sun" /><i class="i-me:gitee mr-12 cursor-pointer"/> // 自定义图标</div><div class="i-carbon:content-view w-1em h-1em"></div><div class="i-carbon:humidity w-1em h-1em"></div><div class="card"><button type="button" @click="count++">count is {{ count }}</button><button v-on:click="clickTest">测试</button><p>Edit<code>components/HelloWorld.vue</code> to test HMR</p></div>

最终显示效果,基本完成前期开发配置需要

http://www.shuangfujiaoyu.com/news/52635.html

相关文章:

  • 外贸网站 在线聊天seo友情链接
  • windows服务器怎么建设网站seo免费优化工具
  • 政府网站运营方案百度帐号管家
  • 凡科网怎么创建网站昆明seo案例
  • 网站ftp的所有权归谁北京互联网公司有哪些
  • 做网站哪家什么是网店推广
  • 路桥网站建设橙子建站怎么收费
  • 威客做logo的网站网络推广自学
  • 电子商务网站开发的形式有制作网页app
  • web网站开发技术介绍seo网站排名
  • 如何打开网页重庆seo整站优化设置
  • 分销网站制作条件免费二级域名注册网站
  • c 做的web网站怎么发布百度人工服务热线24小时
  • 义乌注册公司流程和费用咸阳seo公司
  • 手机模板网站网址大全浏览器
  • 更改wordpress菜单字体seo分析是什么意思
  • 网络搭建学什么成都百度seo推广
  • 在线设计平台的优缺点昆明seo优化
  • 网络营销师怎么报名济南seo小黑seo
  • 高校档案室网站建设百度竞价推广常用到的工具
  • 社保局网站建设意义网页制作在线生成
  • 企业开办网站百度的seo关键词优化怎么弄
  • 国内十大设计公司排名上海网站seo策划
  • 简历制作专业模板seo搜索优化怎么做
  • 上海做网站的公司电话使用 ahrefs 进行 seo 分析
  • 北海做网站网站建设网络营销的好处
  • 台州椒江网站制作公司北京百度推广电话
  • 开发网站制作优化外包服务公司
  • 记事本里做网站 怎么把字体十大免费cms建站系统介绍
  • 做校招的网站有哪些昆明seo网站建设