Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: package

Promise encapsulates the WeChat applet Request

1. Create a request.js file under utils, and then export the method

const app = getApp();
//Encapsulate request requests with promises
const POST = (url, params) => {
let promise = new P

October 3, 2021By Simo Software Design package, program, Promise, Request, WeChatLeave a Comment

OOP – package principle

There are some object-oriented engineering principles, which express a sentence: “A class should only know the contract of the class it uses as a parameter, or any internal contract it uses. “

<

October 3, 2021By Simo Software Design OOP, package, principleLeave a Comment

WeChat applet front end Promise package

config.js

const config = {
base_url_api: “https://douban.uieee.com/v2/movie/”,
}
export {config} http.js

import {config} from “../config”;
class HTTP {
requset({ url, method = “GET”,

October 3, 2021By Simo Software Design front, package, program, Promise, WeChatLeave a Comment

Based on China-based Internet IoT development — based on .NET SDK package

Recently, the concept of the Internet of Things is relatively popular. A large number of manufacturers are rushing to occupy the level of the Internet of Things, including Huawei Internet of Things

October 3, 2021By Simo Software Design application, Based on, Development, Huawei, IOT, it, package, SDKLeave a Comment

Package C # newbie

Newbie to C#, I know that encapsulation is just a way to “protect data”. But I don’t know yet. I think the point of get and set accessors is to add tests in these methods To check whether the param

October 3, 2021By Simo Software Design C # newbie, newbie, packageLeave a Comment

MFC package class is a static link library

The basic controls that come with mfc are not very beautiful, so most developers will customize the class to redraw the controls. I have also accumulated a lot of redrawing of controls, such as dia

October 3, 2021By Simo Software Design class, Library, link, MFC, package, staticLeave a Comment

Algorithm – The minimum spheres of the triangle in 3D?

First, I think you add the vertex and the scale by 1/3 to find the origin and then the maximum distance from the vertex to the origin. This will produce a sphere containing triangles, but it doesn’

October 3, 2021By Simo Software Design 3d, Algorithm, Medium, Minimum, package, shaped, spherical, triangleLeave a Comment

Use promise package AJAX

1. Encapsulate Ajax

1
2 var ajax = new Promise((resolve, reject) => {
3 var xhr = new XMLHttpRequest();
4 xhr.open(‘get’,’./test1. txt’, true);
5 xhr.send();
6 xhr.onreadystatechan

October 3, 2021By Simo Software Design Ajax, package, Promise, useLeave a Comment

High precision algorithm package based on class and object

High precision formula (don’t ask me where it comes from, you can’t find it on the Internet because this is what I wrote)

🙂

1. High-precision addition: add to carry and go to zero
2.

October 3, 2021By Simo Software Design Algorithm, Based on, class, high precision, object, packageLeave a Comment

Simple version of time package

Encapsulate a timestamp

Main application: update blogs, comments, etc. with time at the end

function dateStr(d,sign){ if(!sign){ sign=’-‘ }else{ sign = sign; } let year = d.g

October 3, 2021By Simo Software Design package, simple, time, versionLeave a Comment

Posts navigation

Page 1 Page 2 Page 3 Page 4 Page 5
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress