0906 - stdstring 转换 JSString 乱码

Stop to have a rest, do not forget others still in the running.

    JS::RootedValue price(cx);
    const jschar *chars = (const jschar*)cocos2d::cc_utf8_to_utf16(p.price.c_str());
    price = JS::StringValue(JS_NewUCStringCopyZ(cx, chars));

你可能感兴趣的:(0906 - stdstring 转换 JSString 乱码)