- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试在 API 16 及更高版本的设备上使用 Android Renderscript 支持库,步骤如下 described here .到目前为止,事情进展并不顺利。
下面列出了我的 Renderscript 代码。
#pragma version(1)
#pragma rs java_package_name(com.xxx.renderscript.test)
#include "rs_time.rsh"
rs_script flipScript;
rs_allocation gIn;
rs_allocation gOut;
int width;
int height;
int direction = 0;
void root(uchar4 *v_out, const void *usrData, uint32_t x, uint32_t y) {
if(direction == 0) { // flip horizontally
const uchar4 *element = rsGetElementAt(gIn, width - x, y);
float4 color = rsUnpackColor8888(*element);
float4 output = {color.r, color.g, color.b};
*v_out = rsPackColorTo8888(output);
}
else if(direction == 1) { // flip vertically
const uchar4 *element = rsGetElementAt(gIn, x, height - y);
float4 color = rsUnpackColor8888(*element);
float4 output = {color.r, color.g, color.b};
*v_out = rsPackColorTo8888(output);
}
else if(direction == 2) { // rotate left
const uchar4 *element = rsGetElementAt(gIn, width - y, x);
float4 color = rsUnpackColor8888(*element);
float4 output = {color.r, color.g, color.b};
*v_out = rsPackColorTo8888(output);
}
else if(direction == 3) { // rotate right
const uchar4 *element = rsGetElementAt(gIn, y, height - x);
float4 color = rsUnpackColor8888(*element);
float4 output = {color.r, color.g, color.b};
*v_out = rsPackColorTo8888(output);
}
}
void flip(int testIdx) {
int64_t t0, t1;
int64_t t;
t0 = rsUptimeNanos();
rsForEach(flipScript, gIn, gOut);
t1 = rsUptimeNanos();
t = t1 - t0;
rsDebug(" flip: timer on RS side: ", t);
}
首先,我将我的 Android SDK 工具升级到 22.3,将我的 SDK 平台工具升级到 19。如果我点击 ADT/Help/About ADT/Installation Details,我看到所有组件都已升级到 22.3.0,Developer 除外工具,仍然是 21.0.1:
Android DDMS 22.3.0.v201310242005-887826 com.android.ide.eclipse.ddms.feature.group The Android Open Source Project
Android Developer Tools 21.0.1.201212060302 com.android.ide.eclipse.adt.package.product null
Android Development Tools 22.3.0.v201310242005-887826 com.android.ide.eclipse.adt.feature.group The Android Open Source Project
Android Hierarchy Viewer 22.3.0.v201310242005-887826 com.android.ide.eclipse.hierarchyviewer.feature.group The Android Open Source Project
Android Native Development Tools 22.3.0.v201310242005-887826 com.android.ide.eclipse.ndk.feature.group The Android Open Source Project
Android Traceview 22.3.0.v201310242005-887826 com.android.ide.eclipse.traceview.feature.group The Android Open Source Project
Tracer for OpenGL ES 22.3.0.v201310242005-887826 com.android.ide.eclipse.gldebugger.feature.group The Android Open Source Project
然后我按照上述步骤中的建议编辑了我的“project.properties”文件。我还进行了更改以纳入 Tim Murray 的评论。
proguard.config=C:/android/adt-bundle-windows-x86_64/sdk/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-18
renderscript.target=18
renderscript.support.mode=true
#sdk.buildtools=19.0.0
在我的 Java 代码中,我确保导入了支持库中的包。下面列出了完整的 Java 文件:
package com.xxx.renderscript.test;
import android.support.v8.renderscript.*;
//import android.renderscript.RenderScript;
//import android.renderscript.Allocation;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.SystemClock;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
public class RenderScriptTestActivity extends Activity {
private final String mLog = this.getClass().getName();
private static final int TESTS_PER_GROUP = 12;
private Bitmap mBitmapIn;
private Bitmap mBitmapOut;
private ImageView mDisplayView;
private RenderScript mRS = null;
private ScriptC_flip mScriptFlip = null;
private Allocation mInPixelsAllocation = null;
private Allocation mOutPixelsAllocation = null;
//use aSyncTask so we display the image while rendering it.
private ImageRenderTask mImageRenderTask = null;
private boolean isRsBenchDone = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.i(mLog, "onCreate() ");
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_rs);
mBitmapIn = loadBitmap(R.drawable.city);
mBitmapOut = loadBitmap(R.drawable.city);
mDisplayView = (ImageView) findViewById(R.id.rs_display);
mDisplayView.setImageBitmap(mBitmapOut);
// RS instances
mRS = RenderScript.create(this);
mScriptFlip = new ScriptC_flip(mRS, getResources(), R.raw.flip);
mInPixelsAllocation = Allocation.createFromBitmap(mRS, mBitmapIn,
Allocation.MipmapControl.MIPMAP_NONE,
Allocation.USAGE_SCRIPT);
mOutPixelsAllocation = Allocation.createFromBitmap(mRS, mBitmapOut,
Allocation.MipmapControl.MIPMAP_NONE,
Allocation.USAGE_SCRIPT);
}
@Override
protected void onResume() {
Log.i(mLog, "onResume ");
super.onResume();
// for thread & display control
isRsBenchDone = true;
}
// initialize flip.rs
private void setupRS() {
Log.i(mLog, "Initializing flip.rs...");
mScriptFlip.set_flipScript(mScriptFlip);
mScriptFlip.set_width(mBitmapIn.getWidth());
mScriptFlip.set_height(mBitmapIn.getHeight());
mScriptFlip.set_gIn(mInPixelsAllocation);
mScriptFlip.set_gOut(mOutPixelsAllocation);
}
@Override
protected void onStop() {
Log.i(mLog, "onStop ");
super.onStop();
}
private void resetRS() {
mBitmapIn = null;
mBitmapOut = null;
mRS = null;
mScriptFlip = null;
mInPixelsAllocation = null;
mOutPixelsAllocation = null;
}
private Bitmap loadBitmap(int resource) {
final BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
Bitmap b_temp = BitmapFactory.decodeResource(getResources(), resource, options);
int w = b_temp.getWidth();
int h = b_temp.getHeight();
Config cfg = b_temp.getConfig();
Bitmap b_keep = Bitmap.createBitmap(w, h, cfg);
Canvas c = new Canvas(b_keep);
c.drawBitmap(b_temp, 0, 0, null);
b_temp.recycle();
if (true) {
Log.d(mLog, "loadBitmap(): width = " + w + " loadBitmap(): height = " + h);
}
return b_keep;
}
// press the button to invoke this function
public void benchmark(View v) {
if (false == isRsBenchDone) { //do nothing if it's not done yet
return;
}
if (mImageRenderTask != null) {
if (mImageRenderTask.getStatus() == AsyncTask.Status.RUNNING) {
return;
}
if (mImageRenderTask.getStatus() == AsyncTask.Status.PENDING) {
mImageRenderTask.execute();
return;
}
}
// instantiate AsyncTask if not already existed & running
Log.i(mLog, "User pressed Start");
SystemClock.sleep(2000);
isRsBenchDone = false;
setupRS();
mImageRenderTask = new ImageRenderTask();
mImageRenderTask.execute();
}
// user presses this button when the test is done and all results have been
// recorded.
public void pressedRsExit(View view) {
Log.i(mLog, "User pressed Exit");
if (isRsBenchDone) { // only exit when we are finished
resetRS();
RenderScriptTestActivity.this.finish();
}
}
/**************************************************************************
**
* Since the display must be updated in the main UI thread, and the main
* UI thread cannot be put to sleep, we have to use an AsyncTask to update
* the display after the image is rendered, and then sleep some time
* so that the tester can view the images being displayed.
**
**************************************************************************/
private class ImageRenderTask extends AsyncTask<Void, Drawable, Void> {
// runs in the UI (main) thread in correspondence to the AsyncTask
// updating the drawable.
protected void onProgressUpdate(Drawable... values) {
Log.i(mLog, "onProgressUpdate...");
super.onProgressUpdate(values);
Drawable draw_tmp = values[0];
mDisplayView.setImageDrawable(draw_tmp);
mDisplayView.invalidate();
}
// runs on the UI (main) thread after the AsyncTask is finished
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
// reset the flag to exit
isRsBenchDone = true;
}
@Override
protected Void doInBackground(Void... params) {
int group_id;
int flip_way;
//------------------------------------------------------------
// group 4: flip horizontally
//------------------------------------------------------------
flip_way = 0;
mScriptFlip.set_direction(flip_way);
Log.i(mLog, "starting horizontal flipping ... ... ... ...");
// measure group 4
group_id = 4; // used as a switch for render script
measureRS(group_id);
Log.i(mLog, " horizontal done");
// sleep cannot happen in the main UI thread
SystemClock.sleep(2500);
updateDisplay();
SystemClock.sleep(2500);
//------------------------------------------------------------
// group 5: flip vertically
//------------------------------------------------------------
mScriptFlip.set_gIn(mInPixelsAllocation);
flip_way = 1;
mScriptFlip.set_direction(flip_way);
Log.i(mLog, "starting vertical flipping ... ... ... ...");
// measure group 5
group_id = 5; // used as a switch for render script
measureRS(group_id);
Log.i(mLog, " vertical done");
// sleep cannot happen in the main UI thread
SystemClock.sleep(2500);
updateDisplay();
SystemClock.sleep(2500);
return null;
}
// run and measure Render Script instances
private void measureRS(int group_id) {
if ((0==group_id) || (1 == group_id) || (2 == group_id)) {
//other stuff
}
if (3 == group_id) {
//other stuff
}
if ((4==group_id) || (5 == group_id)) {
for (int i = 0; i < TESTS_PER_GROUP; i++) {
mScriptFlip.invoke_flip(i);
}
}
}
// update the displayed image
private void updateDisplay() {
Log.i(mLog, "updateDisplay...");
//mOutPixelsAllocation.copyTo(mBitmapIn); // this to verify the display.
mOutPixelsAllocation.copyTo(mBitmapOut);
Bitmap b_temp = Bitmap.createBitmap(mBitmapOut.getWidth(), mBitmapOut.getHeight(), Bitmap.Config.ARGB_8888);
Canvas c_temp = new Canvas(b_temp);
c_temp.drawBitmap(mBitmapOut, 0, 0, null);
Drawable d_temp = new BitmapDrawable(getResources(), b_temp);
publishProgress(d_temp);
}
}
}
最后,在我项目的属性中,我将外部 JAR 添加到 Java 构建路径中:
renderscript-v8.jar - C:\android\adt-bundle-windows-x86_64\sdk\build-tools\19.0.0\renderscript\lib
构建的代码没有任何问题。然后我在一些设备上测试了它。这是测试结果。
Nexus 7(2012版,升级到Android 4.4)代码运行完成而没有崩溃。但是,在第一次调用 Renderscript 之后,更新 ImageView 会导致空白显示。显然输出位图没有正确写入。
华为Mate(安卓4.1.2)从 ADT 加载后代码立即崩溃。以下是部分错误消息(帖子正文限制为 30k 个字符,因此我无法发布所有内容):
W/dalvikvm(2246): Refusing to reopen boot DEX '/system/framework/hwframework.jar'
E/RenderScript_jni(2246): No GC methods
D/dalvikvm(2246): Trying to load lib /data/data/com.xxx.renderscript.test/lib/libRSSupport.so 0x41726918
D/dalvikvm(2246): Added shared lib /data/data/com.xxx.renderscript.test/lib/libRSSupport.so 0x41726918
D/dalvikvm(2246): No JNI_OnLoad found in /data/data/com.xxx.renderscript.test/lib/libRSSupport.so 0x41726918, skipping init
D/dalvikvm(2246): Trying to load lib /data/data/com.xxx.renderscript.test/lib/librsjni.so 0x41726918
D/dalvikvm(2246): Added shared lib /data/data/com.xxx.renderscript.test/lib/librsjni.so 0x41726918
V/RenderScript_jni(2246): RS compat mode
V/RenderScript(2246): 0x5bc7d008 Launching thread(s), CPUs 3
E/RenderScript(2246): Unable to open shared library (/data/data/com.xxx.renderscript.test//lib/librs.flip.so): Cannot load library: reloc_library[1306]: 132 cannot locate '_Z13rsUptimeNanosv'...
E/RenderScript(2246): Unable to open system shared library (/system/lib/librs.flip.so): (null)
D/AndroidRuntime(2246): Shutting down VM
W/dalvikvm(2246): threadid=1: thread exiting with uncaught exception (group=0x40f122a0)
E/AndroidRuntime(2246): FATAL EXCEPTION: main
E/AndroidRuntime(2246): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.renderscript.test/com.xxx.renderscript.test.RenderScriptTestActivity}: android.support.v8.renderscript.RSRuntimeException: Loading of ScriptC script failed.
索尼 Xperia Z Ultra C6802(Android 4.2.2)从 ADT 加载后代码立即崩溃,并显示以下错误消息(再次选择以适应 30k 字符限制):
D/AndroidRuntime(3498): CheckJNI is OFF
D/dalvikvm(3498): Trying to load lib libjavacore.so 0x0
D/dalvikvm(3498): Added shared lib libjavacore.so 0x0
D/dalvikvm(3498): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(3498): Added shared lib libnativehelper.so 0x0
I/ActivityManager(903): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=3513 uid=10085 gids={50085, 1015, 1028}
I/ActivityManager(903): No longer want com.mobisystems.office:search (pid 2686): empty #34
I/ActivityManager(903): Start proc com.sonymobile.enterprise.service for broadcast com.sonymobile.enterprise.service/.Receiver: pid=3539 uid=1000 gids={41000, 3003, 1015, 1028, 3002, 3001, 3007}
D/AndroidRuntime(3498): Calling main entry com.android.commands.am.Am
D/dalvikvm(3498): Note: class Landroid/app/ActivityManagerNative; has 157 unimplemented (abstract) methods
I/ActivityManager(903): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.xxx.renderscript.test/.RenderScriptTestActivity} from pid 3498
D/AndroidRuntime(3498): Shutting down VM
D/jdwp(3498): Got wake-up signal, bailing out of select
D/dalvikvm(3498): Debugger has detached; object registry had 1 entries
D/dalvikvm(3557): Late-enabling CheckJNI
I/ActivityManager(903): Start proc com.xxx.renderscript.test for activity com.xxx.renderscript.test/.RenderScriptTestActivity: pid=3557 uid=10088 gids={50088, 1028}
D/dalvikvm(3557): Debugger has detached; object registry had 1 entries
I/Icing.InternalIcingCorporaProvider(2583): Updating corpora: A: com.xxx.renderscript.test, C: MAYBE
E/.AppDataSearchProvider(2583): Could not connect to AppDataSearchClient to register corpora.
W/Icing.InternalIcingCorporaProvider(2583): Corpora registration failed
I/com.xxx.renderscript.test.RenderScriptTestActivity(3557): onCreate()
E/.AppDataSearchProvider(2583): Could not connect to AppDataSearchClient for notifyTableChanged
W/Icing.InternalIcingCorporaProvider(2583): Application table change notification failed.
D/dalvikvm(2856): GC_CONCURRENT freed 187K, 73% free 3028K/11084K, paused 3ms+4ms, total 20ms
D/ConnectionNotify(3116): queue add:2
D/AudioHardwareALSAExt(329): getParameters() supported_effect
D/[APP_SERVICE](3116): package com.xxx.renderscript.test installed
D/[APP_SERVICE](3116): add package com.xxx.renderscript.test
I/ActivityManager(903): Start proc com.UCMobile for broadcast com.UCMobile/.receivers.SysReceiver: pid=3587 uid=10207 gids={50207, 3003, 1015, 1028}
I/dalvikvm(3587): Turning on JNI app bug workarounds for target SDK version 8...
D/dalvikvm(3410): GC_CONCURRENT freed 511K, 71% free 3273K/11084K, paused 2ms+1ms, total 20ms
D/dalvikvm(3410): WAIT_FOR_CONCURRENT_GC blocked 5ms
E/RenderScript_jni(3557): No GC methods
D/dalvikvm(3557): Trying to load lib /data/app-lib/com.xxx.renderscript.test-1/libRSSupport.so 0x418243f8
D/dalvikvm(3557): Added shared lib /data/app-lib/com.xxx.renderscript.test-1/libRSSupport.so 0x418243f8
D/dalvikvm(3557): No JNI_OnLoad found in /data/app-lib/com.xxx.renderscript.test-1/libRSSupport.so 0x418243f8, skipping init
D/dalvikvm(3557): Trying to load lib /data/app-lib/com.xxx.renderscript.test-1/librsjni.so 0x418243f8
D/dalvikvm(3557): Added shared lib /data/app-lib/com.xxx.renderscript.test-1/librsjni.so 0x418243f8
V/RenderScript_jni(3557): RS compat mode
V/RenderScript(3557): 0x72b26978 Launching thread(s), CPUs 4
E/RenderScript(3557): Unable to open shared library (/data/data/com.xxx.renderscript.test//lib/librs.flip.so): Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_Z13rsUptimeNanosv" referenced by "librs.flip.so"...
E/RenderScript(3557): Unable to open system shared library (/system/lib/librs.flip.so): (null)
D/AndroidRuntime(3557): Shutting down VM
W/dalvikvm(3557): threadid=1: thread exiting with uncaught exception (group=0x4154aae0)
E/AndroidRuntime(3557): FATAL EXCEPTION: main
E/AndroidRuntime(3557): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.renderscript.test/com.xxx.renderscript.test.RenderScriptTestActivity}: android.support.v8.renderscript.RSRuntimeException: Loading of ScriptC script failed.
E/AndroidRuntime(3557): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224)
E/AndroidRuntime(3557): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2274)
E/AndroidRuntime(3557): at android.app.ActivityThread.access$600(ActivityThread.java:150)
E/AndroidRuntime(3557): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1276)
E/AndroidRuntime(3557): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(3557): at android.os.Looper.loop(Looper.java:213)
E/AndroidRuntime(3557): at android.app.ActivityThread.main(ActivityThread.java:5153)
E/AndroidRuntime(3557): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(3557): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(3557): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
E/AndroidRuntime(3557): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564)
E/AndroidRuntime(3557): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(3557): Caused by: android.support.v8.renderscript.RSRuntimeException: Loading of ScriptC script failed.
E/AndroidRuntime(3557): at android.support.v8.renderscript.ScriptC.<init>(ScriptC.java:69)
E/AndroidRuntime(3557): at com.xxx.renderscript.test.ScriptC_flip.<init>(ScriptC_flip.java:41)
E/AndroidRuntime(3557): at com.xxx.renderscript.test.RenderScriptTestActivity.onCreate(RenderScriptTestActivity.java:53)
E/AndroidRuntime(3557): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime(3557): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime(3557): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2188)
E/AndroidRuntime(3557): ... 11 more
W/ActivityManager(903): Force finishing activity com.xxx.renderscript.test/.RenderScriptTestActivity
如果有人可以调查这些问题,我将不胜感激,无论是我的代码中的错误还是 Android SDK 问题。欢迎提出意见/建议谢谢!
[编辑] 我从我的代码中删除了不相关的东西,并在此处发布了完整的代码,希望有人可以重复我的问题并找到解决方案。我还添加了更多测试结果。
最佳答案
嗯。我不确定这是否仍然需要以及它是否会解决您的问题,但我建议您尝试使用 Android Plugin for Gradle 1.5.0
这必须在您项目的 build.gradle 中设置(而不是在应用程序 build.gradle 中)
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
并使用buildToolsVersion 22.0.1 或 23.0.2 或最新 版本。
关于java - Renderscript 支持库的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20647441/
关闭。这个问题是off-topic .它目前不接受答案。 想要改进这个问题? Update the question所以它是on-topic用于堆栈溢出。 关闭 12 年前。 Improve thi
我有一个动态网格,其中的数据功能需要正常工作,这样我才能逐步复制网格中的数据。假设在第 5 行中,我输入 10,则从第 6 行开始的后续行应从 11 开始读取,依此类推。 如果我转到空白的第一行并输入
我有一个关于我的按钮消失的问题 我已经把一个图像作为我的按钮 用这个函数动画 function example_animate(px) { $('#cont
我有一个具有 Facebook 连接和经典用户名/密码登录的网站。目前,如果用户单击 facebook_connect 按钮,系统即可运行。但是,我想将现有帐户链接到 facebook,因为用户可以选
我有一个正在为 iOS 开发的应用程序,该应用程序执行以下操作 加载和设置注释并启动核心定位和缩放到位置。 map 上有很多注释,从数据加载不会花很长时间,但将它们实际渲染到 map 上需要一段时间。
我被推荐使用 Heroku for Ruby on Rails 托管,到目前为止,我认为我真的会喜欢它。只是想知道是否有人可以帮助我找出问题所在。 我按照那里的说明在该网站上创建应用程序,创建并提交
我看过很多关于 SSL 错误的帖子和信息,我自己也偶然发现了一个。 我正在尝试使用 GlobalSign CA BE 证书通过 Android WebView 访问网页,但出现了不可信错误。 对于大多
我想开始使用 OpenGL 3+ 和 4,但我在使用 Glew 时遇到了问题。我试图将 glew32.lib 包含在附加依赖项中,并且我已将库和 .dll 移动到主文件夹中,因此不应该有任何路径问题。
我已经盯着这两个下载页面的源代码看了一段时间,但我似乎找不到问题。 我有两个下载页面,一个 javascript 可以工作,一个没有。 工作:http://justupload.it/v/lfd7不是
我一直在使用 jQuery,只是尝试在单击链接时替换文本字段以及隐藏/显示内容项。它似乎在 IE 中工作得很好,但我似乎无法让它在 FF 中工作。 我的 jQuery: $(function() {
我正在尝试为 NDK 编译套接字库,但出现以下两个错误: error: 'close' was not declared in this scope 和 error: 'min' is not a m
我正在使用 Selenium 浏览器自动化框架测试网站。在测试过程中,我切换到特定的框架,我们将其称为“frame_1”。后来,我在 Select 类中使用了 deselectAll() 方法。不久之
我正在尝试通过 Python 创建到 Heroku PostgreSQL 数据库的连接。我将 Windows10 与 Python 3.6.8 和 PostgreSQL 9.6 一起使用。 我从“ht
我有一个包含 2 列的数据框,我想根据两列之间的比较创建第三列。 所以逻辑是:第 1 列 val = 3,第 2 列 val = 4,因此新列值什么都没有 第 1 列 val = 3,第 2 列 va
我想知道如何调试 iphone 5 中的 css 问题。 我尝试使用 firelite 插件。但是从纵向旋转到横向时,火石占据了整个屏幕。 有没有其他方法可以调试 iphone 5 中的 css 问题
所以我有点难以理解为什么这不起作用。我正在尝试替换我正在处理的示例站点上的类别复选框。我试图让它做以下事情:未选中时以一种方式出现,悬停时以另一种方式出现(选中或未选中)选中时以第三种方式出现(而不是
Javascript CSS 问题: 我正在使用一个文本框来写入一个 div。我使用以下 javascript 获取文本框来执行此操作: function process_input(){
你好,我很难理解 P、NP 和多项式时间缩减的主题。我试过在网上搜索它并问过我的一些 friend ,但我没有得到任何好的答案。 我想问一个关于这个话题的一般性问题: 设 A,B 为 P 中的语言(或
你好,我一直在研究 https://leetcode.com/problems/2-keys-keyboard/并想到了这个动态规划问题。 您从空白页上的“A”开始,完成后得到一个数字 n,页面上应该
我正在使用 Cocoapods 和 KIF 在 Xcode 服务器上运行持续集成。我已经成功地为一个项目设置了它来报告每次提交。我现在正在使用第二个项目并收到错误: Bot Issue: warnin
我是一名优秀的程序员,十分优秀!