ICode9

精准搜索请尝试: 精确搜索
  • koa搭建nodejs项目并注册接口2021-09-19 21:31:32

    使用nodejs注册接口逻辑处理会比较复杂,直接通过express或者koa能够简化开发流程,这里记录用koa来搭建nodejs项目并注册接口,对koa不太熟悉的话可以参考这一篇。让nodejs开启服务更简单–koa篇 项目结构 项目整体结构如下,将不同功能的文件按模块划分,使得代码逻辑更为清晰 node_m

  • Vue3.0 - echarts5.x echarts-gl实现3D旋转地球2021-09-18 12:00:32

    效果图  本次开发的版本 代码片段 按需引入 import { use } from "echarts" import { GlobeComponent } from "echarts-gl/components"; use([ GlobeComponent ]); 地图组件 globe: { baseTexture: require("@/assets/datav-gl-texture.jpg"),

  • node.js构建服务器2021-09-13 22:33:37

    一.服务器与客户端 1.服务器的类型 web服务器:安装apache, tomcat, iis, nginx, 或者在nodejs环境写代码 提供:图片浏览,新闻浏览....等服务的服务器。 ftb服务器:安装serv-U软件,为其它电脑提供文件下载,共享服务 数据库服务器:安装mysql软件,为其它电脑提供数据库服务。 2.服务器

  • Vue - 加载静态图片的方式2021-09-13 12:04:08

    目录前言加载静态图片require加载图片import 加载图片 前言 记录下Vue3.0中加载静态图片的方式 加载静态图片 <img class="top-theme" src="./assets/home/theme1.jpg"> require加载图片 <img class="top-theme" :src="require('./assets/home/theme6.jpg')&qu

  • 错误提示:“ReferenceError: require is not defined in ES module scope, you can use impor”解决方法2021-09-13 12:03:25

    错误提示:“ReferenceError: require is not defined in ES module scope, you can use impor”解决方法 今天在学习webpack打包工具,练习时做一个简单的小案例想要实现打包操作,但是在命令行执行“webpack”时被提示“ReferenceError: require is not defined in ES module sc

  • Vue - 加载静态图片的方式2021-09-13 12:02:57

    目录 前言加载静态图片require加载图片import 加载图片 前言 记录下Vue3.0中加载静态图片的方式 加载静态图片 <img class="top-theme" src="./assets/home/theme1.jpg"> require加载图片 <img class="top-theme" :src="require('./assets/home/theme6.jpg')

  • 前端打包工具-webpack2021-09-13 12:00:44

    文章目录 初始化项目配置`webpack`配置开发环境更多`webpack`配置 初始化项目 ##webpack安装 创建package.json,执行npm init一路按enter键就搞定了 安装webpack基本包 # `webpack4.x` 必须安装`webapck-cli`,这是一个注意事项 npm install --D webpack webpack-cli web

  • 前端代码模块化之requireJS_Alice2021-09-09 21:03:33

    第一步:下载require.js,创建HTML文件添加引用,确保自己的路径设置正确。 <script src="../ThirdParty/requirejs-2.1.20/require.js"></script> 第二步:创建功能模块.js文件,最好一个.js文件定义一个模块。 (function () { define('Singulation',[], function(){ 'us

  • odoo14里面开发一个简单的action.client 的tag 模板例子2021-09-09 07:31:50

    1、js模板  web_template.js odoo.define('web', function (require) { "use strict"; var core = require('web.core'); var Widget = require('web.Widget'); var AbstractAction = require('web.AbstractActi

  • laya官网留的坑之高效开发工作流2021-09-09 03:00:13

    官网源代码如下 const { exec } = require("child_process");function compile(cb) { //执行编译命令 gulp let process = exec("layaair2-cmd compile"); process.stdout.on("data", (data) => { console.log(data); }); process.

  • 浏览器端js依赖导包(Node-style require)2021-09-08 21:01:53

    require() does not exist in the browser/client-side JavaScript. have to make some choices about your client-side JavaScript script management. You have three options: Use the <script> tag.Use a CommonJS implementation. It has synchronous dependencie

  • webpack常用插件plugin2021-09-05 12:31:49

    webpack-dev-server https://webpack.docschina.org/configuration/dev-server/开发时提供一个本地的serve服务,可配置热更新和代理请求等 module.exports = { devServer: { open: true, // 启动后默认打开到浏览器 hot: true, compress: true, /

  • React项目中, 图片引入2021-09-04 01:03:10

    react项目中, 使用styled-component ​ 如果在样式文件中设置图片时, 如果使用的是ES6的方式导出的文件, 那么在使用require导入图片时,要加上.default background-image: url(${require("@/assets/img/sprite_footer_02.png").default}); ​ 原因: 由file-loader版本过高引发的

  • 服务端概念2021-09-02 20:31:06

    服务端概念: 服务端(后端/server)为前端提供支撑和营养,像一棵树 职责:提供数据,接受数据,存储数据 前端和后端的交互(回顾http协议,Request 和 Response) 后端如何处理数据 定义前端请求url规则 -- 路由 用Request获取数据,用Response返回数据 读取和存储数据 - 数据库 nodejs 基于Chrome V

  • [PHP] 解决composer install 时require php >7.42021-08-28 09:35:13

    当在使用很多依赖包的时候,会有最低php版本要求 如果在安装的时候遇到需要php > 7.4 那么就需要升级一下php版本   windows下如果使用的集成环境,那么就可以直接通过集成环境里面安装php 7.4以上版本   linux下可以使用包安装命令通过设置新的仓库源来升级php,或者也是使用宝塔等类

  • Happy Captcha2021-08-28 08:31:57

    Happy Captcha 1.简介 Happy Captcha是一款易于使用的Java验证码软件包,旨在花最短的时间,最少的代码量,实现Web站点的验证码功能 2.使用方法 Maven <dependency> <groupId>com.ramostear</groupId> <artifactId>Happy-Captcha</artifactId> <version>1.0.1</version> <

  • vue vue-cli配置文件 build2021-08-24 20:00:07

    文件目录 build.js check-versions.js logo.png vue-loader.conf.js webpack.base.conf.js webpack.dev.conf.js webpack.dll.conf.js webpack.prod.conf.js build.js "use strict"; require("./check-versions")(); process.env.NODE_ENV = "producti

  • think php 登录日记2021-08-23 15:35:17

    */ public function save(Request $request) { // $params = $request->param(); $file = $request->file('img'); $rule = [ 'account' => 'require|unique:twoexam',

  • vue组件props的注意点2021-08-22 21:00:07

    1.props是自定义属性允许当前使用者为当前组件赋初值。 2.props是只读的!千万别直接修改 3.props的对象格式:更多属性请参考: https://www.cnblogs.com/hongdoudou/p/12673732.html props:{ default:, require:, type: } 注意:当设置require为true时,必须要

  • thinkphp 用户登录记录日记2021-08-21 09:34:35

    1、设计数据库表名,字段      2,建立模型       <?php namespace app\login\model; use think\Model; class LoginLon extends Model { // protected $table = 'loginLog'; protected $createTime = true; protected $updateTime = true; //将用户的登

  • Vue报错Custom elements in iteration require 'v-bind:key' directives."错误解决2021-08-20 17:01:59

    错误代码 <swiper> <swiper-item v-for="item in banners"> <a :href="item.link"> <img :src="item.image" alt=""> </a> </swiper-item> </swiper> 正确代码 &l

  • commonjs2021-08-20 15:32:14

    什么是模块化?   模块化就是将独立的功能代码封装成一个独立的文件,其他模块需要使用,再进行引用。 模块化的作用?   模块化有利于代码的拆分和架构上的解耦。模块化再服务端邻域早已成熟,nodejs也已经支持模块化。   一.commonjs   模块加载机制被称为commonjs规范   伴随则

  • 解决require()未声明问题(require.js实例,小白)2021-08-18 22:01:24

    目录结构: 代码: Test_graph.html: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <script src='../..

  • vue require.context()动态文件引入2021-08-17 12:02:15

    require.context()   参数:   1、文件路径;       2、是否匹配子级文件(true,false);       3、正则,匹配的规则      demo: const requireComponent = require.context('.', false, /\.vue$/); const install = (Vue) => { if (install.installed) return;

  • c# TreeView 配合mdb 动态加载数据2021-08-17 11:01:57

    TreeView 配合mdb数据库动态加载数据 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using CPKFLandCheck.src.utils; using System.Data; namespace CPKFLandCheck.src.mainWindow { class Loa

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有