摘要: 问题:在项目开发中使用了artDialog,然而有时候,在控制器中修改了数据然而视图部分并未及时的同步更新(推测是由于artDialog未触发angular更新视图机制<脏检查>,导致js部分代码更新了然后视图依旧是原来的视图) 解决方法:在js中改变数据部分代码后增加一个$timeout(()=> 阅读全文
posted @ 2018-03-21 09:20 yuxiao_l 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 前端选择图片后,对图片进行移动缩放旋转一系列操作后,裁剪选区内容 阅读全文
posted @ 2018-03-13 16:48 yuxiao_l 阅读(112) 评论(0) 推荐(0) 编辑
摘要: input type="file" onchang 阅读全文
posted @ 2018-01-16 14:08 yuxiao_l 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.上课时候有位同学问了一个问题以检验open和read,以下程序可以gcc编译并通过,多运行几次,输出的结果是-1,-1,-1,-1或者是3,0,0,0/4,0,0,0/4,-1,-1,-1.请解释原因。 #include<stdio.h> int main() { char buff[5]; i 阅读全文
posted @ 2016-05-04 09:32 yuxiao_l 阅读(437) 评论(0) 推荐(0) 编辑
摘要: package com.example.second; import java.util.zip.Inflater; import android.support.v7.app.ActionBarActivity;import android.app.AlertDialog;import andro 阅读全文
posted @ 2016-03-26 12:12 yuxiao_l 阅读(130) 评论(0) 推荐(0) 编辑
摘要: MainActivity.java主要代码: public class MainActivity extends ActionBarActivity { public ListView lv; public int[] imageIDS={R.drawable.a,R.drawable.b,R.dr 阅读全文
posted @ 2016-03-26 12:09 yuxiao_l 阅读(197) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com 阅读全文
posted @ 2016-03-26 12:02 yuxiao_l 阅读(146) 评论(0) 推荐(0) 编辑
摘要: package com.example.first; import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.zip.Inflate 阅读全文
posted @ 2016-03-26 12:02 yuxiao_l 阅读(118) 评论(0) 推荐(0) 编辑
摘要: package com.example.second; import android.support.v7.app.ActionBarActivity;import android.os.Bundle;import android.view.Gravity;import android.view.M 阅读全文
posted @ 2016-03-26 11:59 yuxiao_l 阅读(214) 评论(0) 推荐(0) 编辑
摘要: <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_pare 阅读全文
posted @ 2016-03-26 11:56 yuxiao_l 阅读(473) 评论(0) 推荐(0) 编辑