摘要:
推测parser应该是返回"hello" ,"Alice","!" 代码就变成: var str = 'Hello <%= name %>!'; var o = { name: 'Alice'}; function tmpl(str, obj) { str = 'var p = [];' + 'wi 阅读全文
摘要:
URL Loading System提供了综合的disk 和 in-memory 策略的请求缓存。使用缓存有利于减少程序对网络的依赖,并且能提高程序的体验。 Using the Cache for a Request 在NSURLResquest实例中使用一个NSURLRequestCachePol 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> #define N 6 int partition(int arr[], int low, int high){ int key; key = arr[low]; while(low<high){ while(low <h 阅读全文
摘要:
#include <stdio.h> #define SIZE 8 void bubble_sort(int a[], int n); void bubble_sort(int a[], int n) { int i, j, temp; for (j = 0; j < n - 1; j++) for 阅读全文