当前位置:首页 > 移动开发 >

文章分类:移动开发

移动开发 手机终端app内存CPU测试

1、Android端内存测试, 可以通过adb命令: adb shell dumpsys meminfo package_name Dalvik : dalvik使用的内存 Native : native堆上的内存 Other dev: 除了dalvik和native的内存 Pss : 指将共享内存按比例分配到使……

移动开发 vue axios 封装

import Cookies from 'js-cookies';import axios from 'axios';/** * 封装,拦截 */axios.defaults.baseURL = 'https://api.example.com';axios.defaults.headers['token'] = 'token';axios.defaults.headers.post['Content-Type'] = 'application/json'……

移动开发 mock和axios常见的传参方式

第一次接手项目,传参方式还有些吃力,因此做一下总结。 首先我们需要会看 swagger 中的接口。里面写了某个接口需要接收什么样的值,前端怎么传递这个值 在 mock 中的传参方式:……

移动开发 【安卓其他】SpringBoot的快速集成使用(Maven)

现在后台开发比较流行SpringBoot,所以自己趁着有时间也去了解一下,感觉用起来非常方便,不用想传统的项目那样启动起来非常耗时,而且在官网可以选择集成哪些常用的第三方功能。……

移动开发 【记录一个问题】android ndk下设置线程的亲缘性,总有两个核无法设置成功

参考了这篇文章: https://blog.csdn.net/lanyzh0909/article/details/50404664 大体的代码如下: #include pthread.h#include sched.h#include stdio.h#include stdlib.h#include sys/sysinfo.h#include sys/types.h#include unistd.hvoid*……

移动开发 [Angular] How to show global loading spinner for application

app.component.ts: import { Component, OnInit } from "@angular/core" ;import { select, Store } from "@ngrx/store" ;import { Observable } from "rxjs" ;import { map } from "rxjs/operators" ;import { NavigationCancel, NavigationEnd, NavigationE……

移动开发 uni-app中页面部分内容使用索引列表(uni-indexed-list),动态数据

一、引入uni-indexed-list、uni-icons组件 从uni-app插件市场下载或从HBuilder X提供的hello uni-app模板中复制 二、页面中引用 三、对请求获得的数据处理,最终要和官方模板提供的数据结构类似,……

移动开发 Mybatis映射文件Mapper.xml中#和$的区别

1、"#" 简单来说"#"在编译时使用"?"占位符标记,可以有效防止参数注入,相当于我们使用JDBC操作时的PreparedStatement。 2、"$" 直接把参数拼接到SQL中执行相当于JDBC操作时的Statement 3、参数……

移动开发 asp.net core 使用Mysql和Dapper

序曲:学习编程最好的方式就是敲代码,没有比这个更好的方法,哪怕你看了上百G的视频,都不如你自己敲几行代码更为有效。还有要记得敲完代码然后写一篇随笔来记录一下你所学所……

移动开发 安卓构架组件——向项目添加组件(Adding Components to you

在开始之前,建议阅读 应用架构指南 。 Before getting started, we recommend reading the Architecture Components Guide to App Architecture . The guide has some useful principles that apply to all Android apps, and shows how to……